OSDN Git Service

maint: placate syntax-check wrt tests/fs-resize.c
authorJim Meyering <meyering@redhat.com>
Fri, 10 Feb 2012 19:10:33 +0000 (20:10 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 10 Feb 2012 19:10:33 +0000 (20:10 +0100)
* tests/fs-resize.c (main): Remove unused #includes.
Do use set_program_name, to placate syntax-check.

tests/fs-resize.c

index 90bb4c3..bc66178 100644 (file)
@@ -1,9 +1,4 @@
-
 #include <config.h>
-#include <stdbool.h>
-
-#include "closeout.h"
-#include "configmake.h"
 
 #include <parted/parted.h>
 #include <parted/debug.h>
 #include <string.h>
 #include <unistd.h>
 #include <limits.h>
-#include "xalloc.h"
 
-int main(int argc, char **argv)
+#include "progname.h"
+
+int
+main (int argc, char **argv)
 {
+       set_program_name (argv[0]);
+
        PedSector start = 0, len = 0;
        PedGeometry geom, new_geom;
        PedDevice *dev;