X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fuse%2Fguestmount.c;h=7782be1e7723a55d16450be469aefcdd401af3e2;hp=67a746f5ac2eb214009f7b4c5383d9056e900dfa;hb=ae45cee728039d7724fc73e5ffb2550c8054d268;hpb=b0eabcca60da8fec55cbeaf83e17320281ed75b8 diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 67a746f..7782be1 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Derived from the example program 'fusexmp.c': * Copyright (C) 2001-2007 Miklos Szeredi @@ -595,7 +595,7 @@ static int fg_read (const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi) { - TRACE_CALL ("%s, %p, %zu, %ld", path, buf, size, offset); + TRACE_CALL ("%s, %p, %zu, %ld", path, buf, size, (long) offset); char *r; size_t rsize; @@ -632,7 +632,7 @@ static int fg_write (const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi) { - TRACE_CALL ("%s, %p, %zu, %ld", path, buf, size, offset); + TRACE_CALL ("%s, %p, %zu, %ld", path, buf, size, (long) offset); if (read_only) return -EROFS; @@ -1227,5 +1227,5 @@ main (int argc, char *argv[]) guestfs_close (g); free_dir_caches (); - exit (r == -1 ? 1 : 0); + exit (r == 0 ? EXIT_SUCCESS : EXIT_FAILURE); }