projects
/
debian
/
cpmtools
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up a few lintian warnings
[debian/cpmtools]
/
mkfs.cpm.c
diff --git
a/mkfs.cpm.c
b/mkfs.cpm.c
index e15c36d35c8cc39ebff68d493d46ec1333dee3d5..3e97a89a505ed5800475ede7b91aa982801265c4 100644
(file)
--- a/
mkfs.cpm.c
+++ b/
mkfs.cpm.c
@@
-1,16
+1,18
@@
/* #includes */ /*{{{C}}}*//*{{{*/
/* #includes */ /*{{{C}}}*//*{{{*/
+#include "config.h"
+
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "config.h"
-
-extern char *optarg;
-extern int optind,opterr,optopt;
-int getopt(int argc, char * const *argv, const char *optstring);
+#include "getopt_.h"
#include "cpmfs.h"
#include "cpmfs.h"
+
+#ifdef USE_DMALLOC
+#include <dmalloc.h>
+#endif
/*}}}*/
/* #defines */ /*{{{*/
#ifndef O_BINARY
/*}}}*/
/* #defines */ /*{{{*/
#ifndef O_BINARY
@@
-128,7
+130,7
@@
int main(int argc, char *argv[]) /*{{{*/
}
if (optind!=(argc-1)) usage=1;
}
if (optind!=(argc-1)) usage=1;
- else image=argv[optind];
+ else image=argv[optind
++
];
if (usage)
{
if (usage)
{