<sys/wait.h>

Change-Id: I24605df209d012e99333065428a3ed2752799321
This commit is contained in:
Ben Gras
2013-11-22 16:03:53 +01:00
committed by Lionel Sambuc
parent 78da142dab
commit 256829c7e8
6 changed files with 123 additions and 35 deletions

View File

@@ -47,7 +47,7 @@ basic_test(void)
snprintf(cmd_buf, sizeof(cmd_buf), "mount -t ntfs-3g %s %s %s",
RAMDISK, TESTMNT, SILENT);
status = system(cmd_buf);
if (WEXITSTATUS(status != 0))
if (WEXITSTATUS(status) != 0)
bomb("Unable to mount NTFS partition (1)");
/* Open file and verify contents */
@@ -98,7 +98,7 @@ create_partition(void)
snprintf(mntcmd, sizeof(mntcmd), "mount -t ntfs-3g %s %s %s",
RAMDISK, TESTMNT, SILENT);
status = system(mntcmd);
if (WEXITSTATUS(status != 0))
if (WEXITSTATUS(status) != 0)
bomb("Unable to mount NTFS partition (1)");
}