From: Nathan Scott Date: Tue, 20 Sep 2005 15:35:43 +0000 (+0000) Subject: Fix trivial compiler warnings in a scanf. X-Git-Tag: v2.8.0~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a1525fdc4f6141e6a92464c8f4139f2aeff4221;p=thirdparty%2Fxfsprogs-dev.git Fix trivial compiler warnings in a scanf. Merge of master-melb:xfs-cmds:23866a by kenmcd. --- diff --git a/quota/edit.c b/quota/edit.c index d2bc6019c..e4c0e4349 100644 --- a/quota/edit.c +++ b/quota/edit.c @@ -390,9 +390,12 @@ restore_file( rtbsoft = rtbhard = 0; cnt = sscanf(buffer, "%u %llu %llu %llu %llu %llu %llu\n", &id, - &bsoft, &bhard, - &isoft, &ihard, - &rtbsoft, &rtbhard); + (unsigned long long *)&bsoft, + (unsigned long long *)&bhard, + (unsigned long long *)&isoft, + (unsigned long long *)&ihard, + (unsigned long long *)&rtbsoft, + (unsigned long long *)&rtbhard); if (cnt == 5 || cnt == 7) { mask = FS_DQ_ISOFT|FS_DQ_IHARD|FS_DQ_BSOFT|FS_DQ_BHARD; if (cnt == 7)