-CFLAGS= -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs \
+CFLAGS= -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs -Wno-format-overflow \
-Wmissing-declarations -Wmissing-prototypes -O3 -g
# -DDEBUG
LDFLAGS= -s
void die(const char *msg) {
int e;
e= errno;
- printf("400 server failure: %s - %s\r\n",msg,strerror(errno));
+ printf("400 server failure: %s - %s\r\n",msg,strerror(e));
exit(0);
}
char responsebuf[300];
char sesamebuf[MAX_SECRET*2+100];
struct sockaddr_in peername;
- int c, namesize, n, l;
+ int c, n, l;
+ socklen_t namesize;
struct MD5Context md5ctx;
FILE *file;
unsigned long ul;
#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
int main(int argc, char **argv) {
int g;
g= getegid();