summaryrefslogtreecommitdiff
path: root/qmail-pop3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-pop3d.c')
-rw-r--r--qmail-pop3d.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/qmail-pop3d.c b/qmail-pop3d.c
index 2228a4d..c11fd1d 100644
--- a/qmail-pop3d.c
+++ b/qmail-pop3d.c
@@ -45,7 +45,7 @@ void put(buf,len) char *buf; int len;
{
substdio_put(&ssout,buf,len);
}
-void puts(s) char *s;
+void myputs(s) char *s;
{
substdio_puts(&ssout,s);
}
@@ -55,9 +55,9 @@ void flush()
}
void err(s) char *s;
{
- puts("-ERR ");
- puts(s);
- puts("\r\n");
+ myputs("-ERR ");
+ myputs(s);
+ myputs("\r\n");
flush();
}
@@ -73,7 +73,7 @@ void err_toobig() { err("not that many messages"); }
void err_nosuch() { err("unable to open that message"); }
void err_nounlink() { err("unable to unlink all deleted messages"); }
-void okay(arg) char *arg; { puts("+OK \r\n"); flush(); }
+void okay(arg) char *arg; { myputs("+OK \r\n"); flush(); }
void printfn(fn) char *fn;
{
@@ -153,11 +153,11 @@ void pop3_stat(arg) char *arg;
total = 0;
for (i = 0;i < numm;++i) if (!m[i].flagdeleted) { total += m[i].size; j++; }
- puts("+OK ");
+ myputs("+OK ");
put(strnum,fmt_uint(strnum,j));
- puts(" ");
+ myputs(" ");
put(strnum,fmt_ulong(strnum,total));
- puts("\r\n");
+ myputs("\r\n");
flush();
}
@@ -171,9 +171,9 @@ void pop3_rset(arg) char *arg;
void pop3_last(arg) char *arg;
{
- puts("+OK ");
+ myputs("+OK ");
put(strnum,fmt_uint(strnum,last));
- puts("\r\n");
+ myputs("\r\n");
flush();
}
@@ -222,10 +222,10 @@ int i;
int flaguidl;
{
put(strnum,fmt_uint(strnum,i + 1));
- puts(" ");
+ myputs(" ");
if (flaguidl) printfn(m[i].fn);
else put(strnum,fmt_ulong(strnum,m[i].size));
- puts("\r\n");
+ myputs("\r\n");
}
void dolisting(arg,flaguidl) char *arg; int flaguidl;
@@ -234,7 +234,7 @@ void dolisting(arg,flaguidl) char *arg; int flaguidl;
if (*arg) {
i = msgno(arg);
if (i == -1) return;
- puts("+OK ");
+ myputs("+OK ");
list(i,flaguidl);
}
else {
@@ -242,7 +242,7 @@ void dolisting(arg,flaguidl) char *arg; int flaguidl;
for (i = 0;i < numm;++i)
if (!m[i].flagdeleted)
list(i,flaguidl);
- puts(".\r\n");
+ myputs(".\r\n");
}
flush();
}