s4:client/client.c - fix Solaris warning by a type cast
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 6 Dec 2010 10:23:30 +0000 (11:23 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 6 Dec 2010 10:28:58 +0000 (11:28 +0100)
source4/client/client.c

index 93d6f3449531ed1fde513ef8362fae0168e0059e..c6c0088b3c32f6c161bcd623433471df7ed786fe 100644 (file)
@@ -2251,7 +2251,7 @@ static int cmd_chmod(struct smbclient_context *ctx, const char **args)
 
        if (NT_STATUS_IS_ERR(smbcli_unix_chmod(ctx->cli->tree, src, mode))) {
                d_printf("%s chmod file %s 0%o\n",
-                       smbcli_errstr(ctx->cli->tree), src, (mode_t)mode);
+                       smbcli_errstr(ctx->cli->tree), src, (unsigned)mode);
                return 1;
        }