projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put in a prototype for client() to get rid of the "default prototype" warning.
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
5bc41d8
..
1f3b014
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-14,6
+14,7
@@
#include <h/aliasbr.h>
#include <h/dropsbr.h>
#include <zotnet/tws/tws.h>
#include <h/aliasbr.h>
#include <h/dropsbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#define uptolow(c) ((isalpha(c) && isupper (c)) ? tolower (c) : c)
#define uptolow(c) ((isalpha(c) && isupper (c)) ? tolower (c) : c)
@@
-347,13
+348,14
@@
main (int argc, char **argv)
}
else {
#ifdef HAVE_MKSTEMP
}
else {
#ifdef HAVE_MKSTEMP
- mkstemp (tmpfil);
+ if ((out = fdopen( mkstemp (tmpfil), "w" )) == NULL )
+ adios (tmpfil, "unable to create");
#else
mktemp (tmpfil);
#else
mktemp (tmpfil);
-#endif
if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
chmod (tmpfil, 0600);
if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
chmod (tmpfil, 0600);
+#endif
}
hdrtab = (msgstate == normal) ? NHeaders : RHeaders;
}
hdrtab = (msgstate == normal) ? NHeaders : RHeaders;