strncpy (buffer, hp->h_name, sizeof(buffer));
return buffer;
}
- if (hosts.h_name || init_hs ())
+ if (hosts.h_name || init_hs ()) {
for (h = hosts.h_next; h; h = h->h_next)
if (!strcasecmp (h->h_name, q))
return h->h_name;
for (r = h->h_aliases; *r; r++)
if (!strcasecmp (*r, q))
return h->h_name;
+ }
strncpy (buffer, site, sizeof(buffer));
return buffer;
if (sm_rfp != NULL && sm_wfp != NULL)
return RP_OK;
- if (client == NULL || *client == '\0')
+ if (client == NULL || *client == '\0') {
if (clientname)
client = clientname;
else
client = LocalName(); /* no clientname -> LocalName */
+ }
#ifdef ZMAILER
if (client == NULL || *client == '\0')
if (!extras)
return addr;
- if (mp->m_pers || mp->m_path)
+ if (mp->m_pers || mp->m_path) {
if (mp->m_note)
snprintf (buffer, sizeof(buffer), "%s %s <%s>",
legal_person (mp->m_pers ? mp->m_pers : mp->m_mbox),
snprintf (buffer, sizeof(buffer), "%s <%s>",
legal_person (mp->m_pers ? mp->m_pers : mp->m_mbox),
addr);
+ }
else
if (mp->m_note)
snprintf (buffer, sizeof(buffer), "%s %s", addr, mp->m_note);
}
/* concatenate all the new addresses onto 'buf' */
- for (isgroup = 0; cp = getname (str); ) {
+ for (isgroup = 0; (cp = getname (str)); ) {
if ((mp = getm (cp, NULL, 0, fmt_norm, NULL)) == NULL)
continue;
return NULL;
if (get_x400_comp (mbox, "/PN=", buffer, buffer_len)) {
- for (mbox = buffer; mbox = strchr(mbox, '.'); )
+ for (mbox = buffer; (mbox = strchr(mbox, '.')); )
*mbox++ = ' ';
return buffer;
}
if (fmt->f_type == FT_LS_ADDR)
goto unfriendly;
- if ((str = mn->m_pers) == NULL)
+ if ((str = mn->m_pers) == NULL) {
if ((str = mn->m_note)) {
strncpy (buffer, str, sizeof(buffer));
str = buffer;
break;
}
}
+ }
break;
case FT_LOCALDATE:
if (*qp == ',')
*qp++ = 0;
for (cp = qp, qp--; qp > pp; qp--)
- if (*qp != 0)
+ if (*qp != 0) {
if (isspace (*qp))
*qp = 0;
else
break;
+ }
return pp;
}
unlink_outfile = 0;
free_content (ct);
- done (0);
- /* NOT REACHED */
+ return done (0);
}
-void
+int
done (int status)
{
/*
unlink (outfile);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
context_save (); /* save the context file */
}
- done (0);
- /* NOTREACHED */
+ return done (0);
}
}
-void
+int
done (int status)
{
CT *ctp;
free_content (*ctp);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
context_save (); /* save the context file */
}
- done (0);
- /* NOTREACHED */
+ return done (0);
}
}
-void
+int
done (int status)
{
CT *ctp;
free_content (*ctp);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
}
}
- done (missed);
+ return done (missed);
}
seq_save (mp); /* synchronize message sequences */
context_save (); /* save the context file */
folder_free (mp); /* free folder/message structure */
- done (0);
+ return done (0);
}
context_save (); /* save the context file */
}
- done (0);
- /* NOTREACHED */
+ return done (0);
}
}
-void
+int
done (int status)
{
CT *ctp;
free_content (*ctp);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
context_save (); /* save the context file */
}
- done (0);
- /* NOTREACHED */
+ return done (0);
}
}
-void
+int
done (int status)
{
CT *ctp;
free_content (*ctp);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
context_save (); /* save the context file */
}
- done (0);
- /* NOTREACHED */
+ return done (0);
}
}
-void
+int
done (int status)
{
CT *ctp;
free_content (*ctp);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
seq_save (mp);
context_save (); /* save the context file */
folder_free (mp); /* free folder/message structure */
- done (0);
+ return done (0);
}
-void
+int
done (int status)
{
mbx_close (file, md);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
seq_save (mp); /* synchronize message sequences */
context_save (); /* save the context file */
folder_free (mp); /* free folder/message structure */
- done (0);
+ return done (0);
}
-void
+int
done (int status)
{
if (listsw && status && !isatty (fileno (stdout)))
printf ("0\n");
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
seq_setunseen (mp, 0); /* set the Unseen-Sequence */
seq_save (mp);
context_save (); /* save the context file */
- done (0);
-
- /* NOTREACHED */
+ return done (0);
}
unlink (tmpfil);
context_save (); /* save the context file */
- done (0);
+ return done (0);
}
if (mbx_close (file, md) == NOTOK)
done (RCV_MBX);
- done (RCV_MOK);
+ return done (RCV_MOK);
}
unlink (tmpfilenam); /* remove temporary file */
tmpfilenam = NULL;
- done (0);
+ return done (0);
}
/*
* Clean up and exit
*/
-void
+int
done(int status)
{
if (tmpfilenam && *tmpfilenam)
unlink (tmpfilenam);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
context_replace (pfolder, folder); /* update current folder */
context_save (); /* save the context file */
folder_free (mp); /* free folder structure */
- done (0);
+ return done (0);
}
done (0);
what_now (ed, nedit, NOUSE, drft, msg, 0, mp,
anot ? "Replied" : NULL, inplace, cwd);
- done (1);
+ return done (1);
}
void
context_replace (pfolder, newfolder); /* update current folder */
}
context_save (); /* save the context file */
- done (0);
+ return done (0);
}
static int
context_replace (pfolder, folder); /* update current folder */
context_save (); /* save the context file */
folder_free (mp); /* free folder structure */
- done (0);
+ return done (0);
}
if (clearflag)
clear_screen ();
- done (0);
+ return done (0);
}
}
context_save (); /* save the context file */
- done (status);
+ return done (status);
}
* external prototypes
*/
int sendsbr (char **, int, char *, struct stat *, int);
-void done (int);
+int done (int);
char *getusername (void);
/*
}
-void
+int
done (int status)
{
if (armed)
longjmp (env, status ? status : NOTOK);
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
vec[0] = r1bindex (proc, '/');
execvp (proc, vec);
adios (proc, "unable to exec");
+ return 0; /* dead code to satisfy the compiler */
}
/*
static int
outc (int c)
{
- putchar(c);
+ return putchar(c);
}
vmh ();
- done (0);
+ return done (0);
}
/* MISCELLANY */
-void
+int
done (int status)
{
TTYoff ();
pFIN ();
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
pINI ();
pLOOP ();
- done (0);
+ return done (0);
}
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- WhatNow (argc, argv);
+ return WhatNow (argc, argv);
}
else {
#endif
if (((status & 0xff00) != 0xff00)
- && (!reedit || (status & 0x00ff)))
+ && (!reedit || (status & 0x00ff))) {
if (!use && (status & 0xff00) &&
(rename (file, cp = m_backup (file)) != NOTOK)) {
advise (NULL, "problems with edit--draft left in %s", cp);
} else {
advise (NULL, "problems with edit--%s preserved", file);
}
+ }
status = -2; /* maybe "reedit ? -2 : -1"? */
break;
#ifdef ATTVIBUG
done (status);
}
- exit (-1); /* NOT REACHED */
+ return 0; /* dead code to satisfy the compiler */
}
vmh ();
- done (0);
+ return done (0);
}
}
-void
+int
done (int status)
{
if (dfd != NOTOK)
pFIN ();
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
r = strchr(bb->bb_addr, '@');
BBRequest[0] = 0;
- if (*bb->bb_request == '-')
+ if (*bb->bb_request == '-') {
if (p == NULL && r && *r == '@')
snprintf (BBRequest, sizeof(BBRequest), "%s%s%s", bb->bb_name, bb->bb_request, r);
else
snprintf (BBRequest, sizeof(BBRequest), "%s%s", bb->bb_name, bb->bb_request);
+ }
else
if (p == NULL && r && *r == '@' && *bb->bb_request)
snprintf (BBRequest, sizeof(BBRequest), "%s%s", bb->bb_request, r);
return NULL;
}
- if ((wp = strchr(cp, ',')) == NULL)
+ if ((wp = strchr(cp, ',')) == NULL) {
if ((wp = strchr(cp, ' ')) != NULL) {
xp = wp;
while (isspace (*xp))
yp = xp + 4;
while (isspace (*yp))
yp++;
- if (*yp != 0)
+ if (*yp != 0) {
if ((zp = strchr(yp, ' ')) != NULL)
*zp = 0, tp = ++zp;
else
tp = NULL;
+ }
else
*wp = 0, tp = ++wp;
}
}
else
tp = NULL;
+ }
else
*wp = 0, tp = ++wp;
*cp++ = i;
break;
}
- if (cp >= ep)
+ if (cp >= ep) {
if (!(dp = realloc (pp, (size_t) (len += BUFSIZ)))) {
free (pp);
pp = NULL;
}
else
cp += dp - pp, ep = (pp = cp) + len - 2;
+ }
}
}