Mercurial > masqmail
comparison src/readsock.c @ 377:9bc3e47b0222
Various cleanups to remove compiler warnings.
We're clean now, if we specify `-Wno-pointer-sign'.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 14 Jan 2012 18:44:48 +0100 |
parents | b35c17fcf69d |
children |
comparison
equal
deleted
inserted
replaced
376:028bc124d744 | 377:9bc3e47b0222 |
---|---|
23 #include <setjmp.h> | 23 #include <setjmp.h> |
24 #include <unistd.h> | 24 #include <unistd.h> |
25 #include <ctype.h> | 25 #include <ctype.h> |
26 | 26 |
27 #include "readsock.h" | 27 #include "readsock.h" |
28 /*#include "masqmail.h"*/ | |
29 | 28 |
30 jmp_buf jmp_timeout; | 29 jmp_buf jmp_timeout; |
31 | 30 |
32 static void | 31 static void |
33 sig_timeout_handler(int sig) | 32 sig_timeout_handler(int sig) |
148 /* strip leading spaces */ | 147 /* strip leading spaces */ |
149 if (flags & READSOCKL_CHUG) { | 148 if (flags & READSOCKL_CHUG) { |
150 _read_chug(in); | 149 _read_chug(in); |
151 } | 150 } |
152 | 151 |
153 if (!*pbuf) | 152 if (!*pbuf) { |
154 *pbuf = (char *) g_malloc(size); | 153 *pbuf = (char *) malloc(size); |
154 if (!*pbuf) { | |
155 fprintf(stderr, "Out of memory.\n"); | |
156 exit(1); | |
157 } | |
158 } | |
155 buf = *pbuf; | 159 buf = *pbuf; |
156 | 160 |
157 while (1) { | 161 while (1) { |
158 int pp; | 162 int pp; |
159 | 163 |