X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=mmv.c;h=f95772e42f1e28e19cf53e1955afbddb9a8302b2;hb=3c6678da2488fd22445b1d2a72544f955cba4f0b;hp=1215984a682712dfc8cd2aebee2b725e0aaeccc6;hpb=bf800994d6598a56ee0690be95967dcee3b861d1;p=pkg%2Fmmv.git diff --git a/mmv.c b/mmv.c index 1215984..f95772e 100644 --- a/mmv.c +++ b/mmv.c @@ -88,6 +88,7 @@ Use -- as the end of options.\n"; #endif +#include #include #include @@ -123,14 +124,11 @@ extern unsigned _stklen = 10000; #else /* for various flavors of UN*X */ +#include #include #include #include -extern char *getenv(); -extern long lseek(); -extern char *malloc(); - #ifdef HAS_DIRENT #include typedef struct dirent DIRENTRY; @@ -393,7 +391,7 @@ static int movealias(/* REP *first, REP *p, int *pprintaliased */); static int snap(/* REP *first, REP *p */); static void showdone(/* REP *fin */); static void breakout(/* */); -static int breakrep(/* */); +static void breakrep(int); static void breakstat(/* */); static void quit(/* */); static int copymove(/* REP *p */); @@ -2585,10 +2583,10 @@ static void breakout() } -static int breakrep() +static void breakrep(int signum) { gotsig = 1; - return(1); + return; }