alpine/lint.diff

70 lines
2.1 KiB
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From: Jan Engelhardt <jengelh@inai.de>
Date: 2015-03-25 18:25:22.663262139 +0100
rpmlint:
W: alpine implicit-pointer-decl dmail.c:160
W: alpine implicit-pointer-decl mlock.c:114
W: alpine implicit-pointer-decl tmail.c:168
E: alpine no-return-in-nonvoid-function imap.c:2790
gcc:
dmail.c:160:5: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
mlock.c:114:5: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
tmail.c:168:7: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
imap.c:2790:1: warning: control reaches end of non-void function [-Wreturn-type]
---
alpine/imap.c | 1 +
imap/src/dmail/dmail.c | 1 +
imap/src/mlock/mlock.c | 1 +
imap/src/tmail/tmail.c | 1 +
4 files changed, 4 insertions(+)
Index: alpine-2.20/alpine/imap.c
===================================================================
--- alpine-2.20.orig/alpine/imap.c
+++ alpine-2.20/alpine/imap.c
@@ -2786,6 +2786,7 @@ if(F_OFF(F_DISABLE_PASSWORD_FILE_SAVING,
return(want_to(_("Preserve password on DISK for next login"),
'y', 'x', NO_HELP, WT_NORM)
== 'y');
+return 0;
#endif /* PASSFILE */
}
Index: alpine-2.20/imap/src/dmail/dmail.c
===================================================================
--- alpine-2.20.orig/imap/src/dmail/dmail.c
+++ alpine-2.20/imap/src/dmail/dmail.c
@@ -24,6 +24,7 @@
*
*/
+#include <ctype.h>
#include <stdio.h>
#include <pwd.h>
#include <errno.h>
Index: alpine-2.20/imap/src/mlock/mlock.c
===================================================================
--- alpine-2.20.orig/imap/src/mlock/mlock.c
+++ alpine-2.20/imap/src/mlock/mlock.c
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <sysexits.h>
#include <syslog.h>
+#include <time.h>
#include <grp.h>
#include <sys/types.h>
#include <sys/file.h>
Index: alpine-2.20/imap/src/tmail/tmail.c
===================================================================
--- alpine-2.20.orig/imap/src/tmail/tmail.c
+++ alpine-2.20/imap/src/tmail/tmail.c
@@ -23,6 +23,7 @@
*
*/
+#include <ctype.h>
#include <stdio.h>
#include <pwd.h>
#include <errno.h>