s3:utils fix wrong usage of PRIu64 in sscanf
authorChristian Ambach <ambi@samba.org>
Tue, 16 Apr 2013 10:39:55 +0000 (12:39 +0200)
committerChristian Ambach <ambi@samba.org>
Mon, 6 May 2013 14:33:38 +0000 (16:33 +0200)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/smbcquotas.c

index 7363d6b4a30aea648892b6ecbd238bccabecf510..b875b1eea3f09291991255bad7957e25dce530de 100644 (file)
@@ -187,7 +187,9 @@ static int parse_quota_set(TALLOC_CTX *ctx,
 
        switch (todo) {
                case PARSE_LIM:
-                       if (sscanf(p,"%"PRIu64"/%"PRIu64,&pqt->softlim,&pqt->hardlim)!=2) {
+                       if (sscanf(p,"%"SCNu64"/%"SCNu64,&pqt->softlim,
+                           &pqt->hardlim) != 2)
+                       {
                                return -1;
                        }