@@ -84,7 +84,7 @@ command(
dbprintf(_(" arguments\n"));
return 0;
}
- platform_getoptreset();
+ getoptreset();
return ct->cfunc(argc, argv);
}
@@ -89,12 +89,17 @@ static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
return fstatfs(fd, buf);
}
-static __inline__ void platform_getoptreset(void)
+static __inline__ void getoptreset(void)
{
extern int optind;
optind = 0;
}
+static __inline__ void platform_getoptreset(void)
+{
+ platform_getoptreset();
+}
+
static __inline__ int platform_uuid_compare(uuid_t *uu1, uuid_t *uu2)
{
return uuid_compare(*uu1, *uu2);
@@ -92,7 +92,7 @@ command(
argc-1, cmd, ct->argmin, ct->argmax);
return 0;
}
- platform_getoptreset();
+ getoptreset();
return ct->cfunc(argc, argv);
}