projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug #23167: sbr/ruserpass.c (ruserpass): make bad permissions on .netrc be
[mmh]
/
uip
/
slocal.c
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
817a411
..
4a8875e
100644
(file)
--- a/
uip/slocal.c
+++ b/
uip/slocal.c
@@
-412,7
+412,8
@@
main (int argc, char **argv)
/* deliver the message */
status = localmail (fd, mdlvr);
/* deliver the message */
status = localmail (fd, mdlvr);
- return done (status != -1 ? RCV_MOK : RCV_MBX);
+ done (status != -1 ? RCV_MOK : RCV_MBX);
+ return 1;
}
}
@@
-683,7
+684,7
@@
static int
split (char *cp, char **vec)
{
int i;
split (char *cp, char **vec)
{
int i;
- char *s;
+ unsigned char *s;
s = cp;
s = cp;
@@
-958,7
+959,7
@@
logged_in (void)
while ((utp = getutent()) != NULL) {
if (
while ((utp = getutent()) != NULL) {
if (
-#ifdef HAVE_UTMP_UT_TYPE
+#ifdef HAVE_STRUCT_UTMP_UT_TYPE
utp->ut_type == USER_PROCESS
&&
#endif
utp->ut_type == USER_PROCESS
&&
#endif
@@
-1232,8
+1233,8
@@
static void
get_sender (char *envelope, char **sender)
{
int i;
get_sender (char *envelope, char **sender)
{
int i;
- char *cp;
- char buffer[BUFSIZ];
+ unsigned char *cp;
+ unsigned char buffer[BUFSIZ];
if (envelope == NULL) {
*sender = getcpy ("");
if (envelope == NULL) {
*sender = getcpy ("");
@@
-1360,11
+1361,11
@@
you_lose:
/* return path for UUCP style addressing */
ep = strchr(++hp, '\n');
snprintf (buffer, sizeof(buffer), "Return-Path: %.*s!%.*s\n",
/* return path for UUCP style addressing */
ep = strchr(++hp, '\n');
snprintf (buffer, sizeof(buffer), "Return-Path: %.*s!%.*s\n",
- ep - hp, hp, cp - fp, fp);
+ (int)(ep - hp), hp, (int)(cp - fp), fp);
} else {
/* return path for standard domain addressing */
snprintf (buffer, sizeof(buffer), "Return-Path: %.*s\n",
} else {
/* return path for standard domain addressing */
snprintf (buffer, sizeof(buffer), "Return-Path: %.*s\n",
- cp - fp, fp);
+ (int)(cp - fp), fp);
}
/* Add Return-Path header to message */
}
/* Add Return-Path header to message */
@@
-1412,7
+1413,7
@@
static char *
trim (char *cp)
{
char buffer[BUFSIZ*4];
trim (char *cp)
{
char buffer[BUFSIZ*4];
- char *bp, *sp;
+ unsigned char *bp, *sp;
if (cp == NULL)
return NULL;
if (cp == NULL)
return NULL;