summaryrefslogtreecommitdiff
path: root/src/qmail-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-send.c')
-rw-r--r--src/qmail-send.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/qmail-send.c b/src/qmail-send.c
index fa241bf..026161f 100644
--- a/src/qmail-send.c
+++ b/src/qmail-send.c
@@ -69,17 +69,17 @@ int flagreadasap = 0; void sighup() { flagreadasap = 1; }
void cleandied()
{
- log1s("alert: lost connection to qmail-clean ... exiting\n");
- flagexitasap = 1;
+ log1s("alert: lost connection to qmail-clean ... exiting\n");
+ flagexitasap = 1;
}
int flagspawnalive[CHANNELS];
void spawndied(int c)
{
- log1s("alert: oh no! lost spawn connection! dying...\n");
- flagspawnalive[c] = 0;
- flagexitasap = 1;
+ log1s("alert: oh no! lost spawn connection! dying...\n");
+ flagspawnalive[c] = 0;
+ flagexitasap = 1;
}
#define REPORTMAX 10000
@@ -95,8 +95,8 @@ char fnmake_strnum[FMT_ULONG];
void fnmake_init()
{
- while (!stralloc_ready(&fn,FMTQFN)) nomem();
- while (!stralloc_ready(&fn2,FMTQFN)) nomem();
+ while (!stralloc_ready(&fn,FMTQFN)) nomem();
+ while (!stralloc_ready(&fn2,FMTQFN)) nomem();
}
void fnmake_info(unsigned long id) { fn.len = fmtqfn(fn.s,"info/",id,1); }
@@ -144,7 +144,7 @@ int getinfo(stralloc *sa,datetime_sec *dt,unsigned long id)
struct stat st;
static stralloc line = {0};
int match;
- char buf[128];
+ char buf[BUFFER_SMALL];
buffer b;
fnmake_info(id);
@@ -166,8 +166,10 @@ int getinfo(stralloc *sa,datetime_sec *dt,unsigned long id)
/* this file is too long ------------------------------------- COMMUNICATION */
-buffer toqc; char toqcbuf[1024];
-buffer fromqc; char fromqcbuf[1024];
+buffer toqc;
+char toqcbuf[BUFSIZE_LINE];
+buffer fromqc;
+char fromqcbuf[BUFSIZE_LINE];
stralloc comm_buf[CHANNELS] = { {0}, {0} };
int comm_pos[CHANNELS];
@@ -573,8 +575,8 @@ int injectbounce(unsigned long id)
int r;
int fd;
buffer bi;
- char buf[128];
- char inbuf[128];
+ char buf[BUFFER_SMALL];
+ char inbuf[BUFFER_SMALL];
static stralloc sender = {0};
static stralloc quoted = {0};
datetime_sec birth;
@@ -719,7 +721,7 @@ unsigned int concurrency[CHANNELS] = { 10, 20 };
unsigned int concurrencyused[CHANNELS] = { 0, 0 };
struct del *d[CHANNELS];
stralloc dline[CHANNELS];
-char delbuf[2048];
+char delbuf[BUFSIZE_MESS];
void del_status()
{
@@ -921,7 +923,7 @@ struct
int fd; /* defined if id; reading from {local,remote} */
seek_pos mpos; /* defined if id; mark position */
buffer b;
- char buf[128];
+ char buf[BUFFER_SMALL];
}
pass[CHANNELS];
@@ -1137,7 +1139,7 @@ void pass_do()
/* this file is too long ------------------------------------- EXTERNAL TODO */
stralloc todoline = {0};
-char todobuf[2048];
+char todobuf[BUFSIZE_MESS];
int todofdin;
int todofdout;
int flagtodoalive;