examples/testsmbc.c - quiet implicit cast warnings on OpenSolaris
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 20 Feb 2012 08:23:30 +0000 (09:23 +0100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 22 Feb 2012 22:57:24 +0000 (23:57 +0100)
https://bugzilla.samba.org/show_bug.cgi?id=8767

Signed-off-by: Andrew Tridgell <tridge@samba.org>
examples/libsmbclient/testsmbc.c

index 19d4ba7..47fb130 100644 (file)
@@ -240,10 +240,10 @@ int main(int argc, char *argv[])
   }
 
   fprintf(stdout, "Stat'ed file:   %s. Size = %d, mode = %04X\n", file2, 
-         (int)st2.st_size, st2.st_mode);
+         (int)st2.st_size, (unsigned int)st2.st_mode);
   fprintf(stdout, "    time: %s\n", ctime(&st2.st_atime));
   fprintf(stdout, "Earlier stat:   %s, Size = %d, mode = %04X\n", file, 
-         (int)st1.st_size, st1.st_mode);
+         (int)st1.st_size, (unsigned int)st1.st_mode);
   fprintf(stdout, "    time: %s\n", ctime(&st1.st_atime));
 
   /* Now, make a directory ... */