projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminated compilation warnings.
[mmh]
/
uip
/
mshcmds.c
diff --git
a/uip/mshcmds.c
b/uip/mshcmds.c
index
fcdd5e1
..
427bff6
100644
(file)
--- a/
uip/mshcmds.c
+++ b/
uip/mshcmds.c
@@
-691,7
+691,7
@@
foldcmd (char **args)
packsw = 0;
continue;
}
packsw = 0;
continue;
}
- if (*cp == '+' || *cp == '@')
+ if (*cp == '+' || *cp == '@') {
if (folder) {
advise (NULL, "only one folder at a time!\n");
return;
if (folder) {
advise (NULL, "only one folder at a time!\n");
return;
@@
-699,6
+699,7
@@
foldcmd (char **args)
else
folder = fmsh ? path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)
: cp + 1;
else
folder = fmsh ? path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)
: cp + 1;
+ }
else
if (msg) {
advise (NULL, "only one message at a time!\n");
else
if (msg) {
advise (NULL, "only one message at a time!\n");
@@
-932,7
+933,11
@@
forwcmd (char **args)
/* foil search of .mh_profile */
snprintf (buf, sizeof(buf), "%sXXXXXX", invo_name);
/* foil search of .mh_profile */
snprintf (buf, sizeof(buf), "%sXXXXXX", invo_name);
+#ifdef HAVE_MKSTEMP
+ vec[0] = (char *)mkstemp (buf);
+#else
vec[0] = (char *)mktemp (buf);
vec[0] = (char *)mktemp (buf);
+#endif
vec[vecp++] = "-file";
vec[vecp] = NULL;
if (!msgp)
vec[vecp++] = "-file";
vec[vecp] = NULL;
if (!msgp)
@@
-1188,7
+1193,7
@@
markcmd (char **args)
}
}
}
}
- if (!addsw && !deletesw && !listsw)
+ if (!addsw && !deletesw && !listsw) {
if (seqp)
addsw++;
else
if (seqp)
addsw++;
else
@@
-1201,6
+1206,7
@@
markcmd (char **args)
if (!msgp)
msgs[msgp++] = "all";
}
if (!msgp)
msgs[msgp++] = "all";
}
+ }
if (!msgp)
msgs[msgp++] = listsw ? "all" :"cur";
if (!msgp)
msgs[msgp++] = listsw ? "all" :"cur";