configure: cleanup strsep() test case
[fio.git] / configure
index 1a41fe58024ea40a0d892c9d9e44ff7eb0e819bb..ee096b3ae68143fd0e7d7592d22a2aa831f614a4 100755 (executable)
--- a/configure
+++ b/configure
@@ -939,7 +939,8 @@ cat > $TMPC << EOF
 #include <string.h>
 int main(int argc, char **argv)
 {
-  strsep(NULL, NULL);
+  static char *string = "This is a string";
+  strsep(&string, "needle");
   return 0;
 }
 EOF
@@ -1480,7 +1481,7 @@ int main(int argc, char **argv)
 {
   FILE *mtab = setmntent(NULL, "r");
   struct mntent *mnt = getmntent(mtab);
-  endmntent(mnt);
+  endmntent(mtab);
   return 0;
 }
 EOF