quotactl01: replace int comparison with memcmp

Testcase currently uses unsigned long for all returned
and expected values. This doesn't work for some cases,
for example Q_GETFMT returns 32bit number. So if we pass
in unsigned long (8 bytes) on big endian, the comparison
breaks:

quotactl01.c:198: FAIL: quotactl got unexpected info 8589934592, expected 2
2 << 32 == 8589934592

This patch converts parameters to void* and adds size value. After
syscall it passes all to memcmp.

Patch also removes dummy "data" variable and replaces it with
NULL and 0 size parameters.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed