X-Git-Url: https://git.deb.at/?p=pkg%2Fmmv.git;a=blobdiff_plain;f=mmv.c;fp=mmv.c;h=abce4a40b91e82f7642267970502af6b9a8cc7bd;hp=1215984a682712dfc8cd2aebee2b725e0aaeccc6;hb=5350e76f1bbd9d9e52bc0beaa31708bf46bbf85f;hpb=bf800994d6598a56ee0690be95967dcee3b861d1 diff --git a/mmv.c b/mmv.c index 1215984..abce4a4 100644 --- a/mmv.c +++ b/mmv.c @@ -88,6 +88,7 @@ Use -- as the end of options.\n"; #endif +#include #include #include @@ -127,10 +128,6 @@ extern unsigned _stklen = 10000; #include #include -extern char *getenv(); -extern long lseek(); -extern char *malloc(); - #ifdef HAS_DIRENT #include typedef struct dirent DIRENTRY; @@ -393,7 +390,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 +2582,10 @@ static void breakout() } -static int breakrep() +static void breakrep(int signum) { gotsig = 1; - return(1); + return; }