X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Ffakesmtp.c;h=700bc45d5ac0946e54733f97ced40db715ba95d5;hb=911d7035bfc4229bdbb754dbc165982fc4d6c6d2;hp=19df2e9751b82c33ead3d4e348dd0061415ed5cc;hpb=d6b1aed6b65b10cd5db73a5b2080c4bdefefff39;p=mmh diff --git a/test/fakesmtp.c b/test/fakesmtp.c index 19df2e9..700bc45 100644 --- a/test/fakesmtp.c +++ b/test/fakesmtp.c @@ -240,7 +240,7 @@ static int getsmtp(int socket, char *data) { int cc; - static int bytesinbuf = 0; + static unsigned int bytesinbuf = 0; static char buffer[LINESIZE * 2], *p; for (;;) { @@ -294,6 +294,8 @@ getsmtp(int socket, char *data) static void handleterm(int signal) { + (void) signal; + killpidfile(); fflush(NULL); _exit(1);