Cast file->mode to an int when printing it via %o.
authorWayne Davison <wayned@samba.org>
Fri, 5 May 2006 05:40:17 +0000 (05:40 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 5 May 2006 05:40:17 +0000 (05:40 +0000)
generator.c

index 5d1077e..d8863d7 100644 (file)
@@ -740,7 +740,7 @@ static int try_dests_non(struct file_struct *file, char *fname, int ndx,
                } else {
                        rprintf(FERROR,
                                "internal: try_dests_non() called with invalid mode (%o)\n",
-                               file->mode);
+                               (int)file->mode);
                        exit_cleanup(RERR_UNSUPPORTED);
                }
                if (link_dest