#include <stdarg.h>
#include <zlib.h>
+#include "c.h"
#include "cramfs.h"
#include "md5.h"
#include "nls.h"
/* The kernel only supports PAD_SIZE of 0 and 512. */
#define PAD_SIZE 512
-static const char *progname = "mkcramfs";
static int verbose = 0;
static unsigned int blksize; /* settable via -b option */
" -z make explicit holes (requires >= 2.3.39)\n"
" dirname root of the filesystem to be compressed\n"
" outfile output file\n"),
- progname, PAD_SIZE);
+ program_invocation_short_name, PAD_SIZE);
exit(status);
}
blksize = getpagesize();
total_blocks = 0;
- if (argc) {
- char *p;
- progname = argv[0];
- if ((p = strrchr(progname, '/')) != NULL)
- progname = p+1;
- }
-
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
break;
case 'V':
printf(_("%s (%s)\n"),
- progname, PACKAGE_STRING);
+ program_invocation_short_name, PACKAGE_STRING);
exit(MKFS_OK);
case 'v':
verbose = 1;