From e7781fb39d2ad428d0d0c779ed141281d75476dd Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 11 Dec 2011 10:24:20 -0600 Subject: [PATCH] Removed unused local variables to eliminate warnings from gcc 4.6.2. --- uip/fmtdump.c | 3 +-- uip/msgchk.c | 2 -- uip/post.c | 5 +---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/uip/fmtdump.c b/uip/fmtdump.c index fff4502..2abf05e 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -45,7 +45,6 @@ static void litputc(char); int main (int argc, char **argv) { - int ncomps; char *cp, *form = NULL, *format = NULL; char buf[BUFSIZ], *nfs, **argp, **arguments; struct format *fmt; @@ -101,7 +100,7 @@ main (int argc, char **argv) * Get new format string. Must be before chdir(). */ nfs = new_fs (form, format, FORMAT); - ncomps = fmt_compile(nfs, &fmt); + (void) fmt_compile(nfs, &fmt); fmt_dump(fmt); done(0); diff --git a/uip/msgchk.c b/uip/msgchk.c index 9b56649..c7f32f5 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -96,7 +96,6 @@ main (int argc, char **argv) int datesw = 1, notifysw = NT_ALL; int status = 0, sasl = 0; int snoop = 0, vecp = 0; - uid_t uid; char *cp, *host = NULL, *port = NULL, *user, *proxy = NULL; char buf[BUFSIZ], *saslmech = NULL; char **argp, **arguments, *vec[MAXVEC]; @@ -116,7 +115,6 @@ main (int argc, char **argv) context_read(); mts_init (invo_name); - uid = getuid (); user = getusername(); arguments = getarguments (invo_name, argc, argv, 1); diff --git a/uip/post.c b/uip/post.c index d5760a2..cd96ed7 100644 --- a/uip/post.c +++ b/uip/post.c @@ -1309,16 +1309,13 @@ make_bcc_file (int dashstuff) static int find_prefix (void) { - int len, result; + int result = OK; unsigned char buffer[BUFSIZ]; FILE *in; if ((in = fopen (tmpfil, "r")) == NULL) adios (tmpfil, "unable to re-open"); - len = strlen (prefix); - - result = OK; while (fgets (buffer, sizeof(buffer) - 1, in)) if (buffer[0] == '-' && buffer[1] == '-') { unsigned char *cp; -- 1.7.10.4