X-Git-Url: https://git.gag.com/?p=debian%2Fcpmtools;a=blobdiff_plain;f=cpmchattr.c;h=aaecdc7328151c7b41025dc1e0ab27fdf902ea00;hp=cb9e53d4358493bf73b49d17fa802b8a5e4e5406;hb=da79766c5b4c4bae50ddc7bd81b610d3a45c5899;hpb=224b4e6d27a3af235500d9d8028ddbd3a60af7ed diff --git a/cpmchattr.c b/cpmchattr.c index cb9e53d..aaecdc7 100644 --- a/cpmchattr.c +++ b/cpmchattr.c @@ -6,7 +6,7 @@ #include #include -#include "getopt.h" +#include "getopt_.h" #include "cpmfs.h" #ifdef USE_DMALLOC @@ -43,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)