X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=cpmchattr.c;h=aaecdc7328151c7b41025dc1e0ab27fdf902ea00;hb=18e5c00aa6657c8950390857f1bc103c58f12b60;hp=42704e72c7cc1ff1dbf7c96122d7538d022ee9b1;hpb=9d1b9d0a2b6515be3cec895654af126aaddd21b3;p=debian%2Fcpmtools diff --git a/cpmchattr.c b/cpmchattr.c index 42704e7..aaecdc7 100644 --- a/cpmchattr.c +++ b/cpmchattr.c @@ -1,12 +1,17 @@ /* #includes */ /*{{{C}}}*//*{{{*/ +#include "config.h" + #include #include #include #include -#include "config.h" -#include "getopt.h" +#include "getopt_.h" #include "cpmfs.h" + +#ifdef USE_DMALLOC +#include +#endif /*}}}*/ const char cmd[]="cpmchattr"; @@ -38,8 +43,8 @@ int main(int argc, char *argv[]) /*{{{*/ if (optind>=(argc-2)) usage=1; else { - image=argv[optind]; - attrs = argv[optind+1]; + image=argv[optind++]; + attrs = argv[optind++]; } if (usage)