From: Enrico Scholz Date: Wed, 5 May 2004 19:36:33 +0000 (+0000) Subject: be more carefully regarding signed vs. unsigned int... X-Git-Tag: VERSION_0_10~53 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be0da3a8abaa934b3e7fc69dee8ab15157e4eab7;p=util-vserver.git be more carefully regarding signed vs. unsigned int... git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1532 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/syscall_setiattr-fscompat.hc b/util-vserver/lib/syscall_setiattr-fscompat.hc index b35263a..820db95 100644 --- a/util-vserver/lib/syscall_setiattr-fscompat.hc +++ b/util-vserver/lib/syscall_setiattr-fscompat.hc @@ -43,7 +43,7 @@ vc_set_iattr_fscompat(char const *filename, if (stat_rc==-1) goto err; if ( (mask&VC_IATTR_IUNLINK) ) { - int const tmp = VC_IMMUTABLE_FILE_FL|VC_IMMUTABLE_LINK_FL; + unsigned int const tmp = VC_IMMUTABLE_FILE_FL|VC_IMMUTABLE_LINK_FL; if (vc_X_set_ext2flags(fd, (flags&VC_IATTR_IUNLINK) ? tmp : 0, (flags&VC_IATTR_IUNLINK) ? 0 : tmp)==-1)