Make robustly stand alone.
authorjbj <devnull@localhost>
Wed, 22 Jan 2003 12:06:15 +0000 (12:06 +0000)
committerjbj <devnull@localhost>
Wed, 22 Jan 2003 12:06:15 +0000 (12:06 +0000)
CVS patchset: 6020
CVS date: 2003/01/22 12:06:15

tools/convertdb1.c

index 9e5bb62f5bf022fc0911721a2181af676bdac007..05bd99f7c727082aaeb4e2a6ea99a32fa4d416c7 100644 (file)
@@ -1,9 +1,10 @@
-#include "system.h"
-#include <rpmio.h>
+#include <sys/types.h>
+#include <fcntl.h>
+
 #include <rpmlib.h>
 #include <rpmdb.h>
+#include <rpmio.h>
 #include <rpmmacro.h>
-#include "debug.h"
 
 #define FA_MAGIC      0x02050920
 
@@ -225,7 +226,7 @@ char **argv;
 
   if (argc != 2)
     {
-      fprintf(stderr, "usage: rpm3import <packages.rpm>\n");
+      fprintf(stderr, "usage: %s <packages.rpm>\n", argv[0]);
       exit(1);
     }
   if ((fd = fadOpen(argv[1])) == 0)