projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catch unparsable addresses
[mmh]
/
uip
/
distsbr.c
diff --git
a/uip/distsbr.c
b/uip/distsbr.c
index
42c3ce8
..
a856dc7
100644
(file)
--- a/
uip/distsbr.c
+++ b/
uip/distsbr.c
@@
-9,6
+9,9
@@
#include <h/mh.h>
#include <fcntl.h>
#include <h/utils.h>
#include <h/mh.h>
#include <fcntl.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
static int hdrfd = NOTOK;
static int txtfd = NOTOK;
static int hdrfd = NOTOK;
static int txtfd = NOTOK;
@@
-22,10
+25,10
@@
int
distout(char *drft, char *msgnam, char *backup)
{
int state;
distout(char *drft, char *msgnam, char *backup)
{
int state;
- register unsigned char *dp;
- register char *resent;
+ unsigned char *dp;
+ char *resent;
char name[NAMESZ], buffer[BUFSIZ];
char name[NAMESZ], buffer[BUFSIZ];
- register FILE *ifp, *ofp;
+ FILE *ifp, *ofp;
strcpy(backup, m_mktemp(toabsdir(invo_name), NULL, NULL));
if (rename(drft, backup) == NOTOK) {
strcpy(backup, m_mktemp(toabsdir(invo_name), NULL, NULL));
if (rename(drft, backup) == NOTOK) {
@@
-138,7
+141,7
@@
ready_msg(char *msgnam)
{
int state, out;
char name[NAMESZ], buffer[BUFSIZ], tmpfil[BUFSIZ];
{
int state, out;
char name[NAMESZ], buffer[BUFSIZ], tmpfil[BUFSIZ];
- register FILE *ifp, *ofp;
+ FILE *ifp, *ofp;
char *cp = NULL;
if (hdrfd != NOTOK) {
char *cp = NULL;
if (hdrfd != NOTOK) {