aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail.h2
-rw-r--r--md5ify.c2
-rw-r--r--mx.h6
-rw-r--r--mxget.c2
-rw-r--r--report.c8
5 files changed, 10 insertions, 10 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 9cc13b46..fb2f085e 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -290,7 +290,7 @@ int doETRN (struct query *);
struct query *hostalloc(struct query *);
int parsecmdline (int, char **, struct query *);
void optmerge(struct query *, struct query *);
-char *MD5Digest (char *);
+char *MD5Digest (unsigned char *);
int daemonize(const char *, void (*)(int));
char *getpassword(char *);
void escapes(const char *, char *);
diff --git a/md5ify.c b/md5ify.c
index 7cb23b6c..0ca3e6b9 100644
--- a/md5ify.c
+++ b/md5ify.c
@@ -20,7 +20,7 @@
char *
MD5Digest (s)
-char *s;
+unsigned char *s;
{
int i;
MD5_CTX context;
diff --git a/mx.h b/mx.h
index 0a28f2b0..b32a7ef4 100644
--- a/mx.h
+++ b/mx.h
@@ -2,11 +2,11 @@
struct mxentry
{
- char *name;
- int pref;
+ unsigned char *name;
+ int pref;
};
-extern struct mxentry * getmxrecords(const char *);
+extern struct mxentry * getmxrecords(const unsigned char *);
/* some versions of FreeBSD should declare this but don't */
extern int h_errno;
diff --git a/mxget.c b/mxget.c
index 91b2b418..482ea568 100644
--- a/mxget.c
+++ b/mxget.c
@@ -40,7 +40,7 @@
/* minimum possible size of MX record in packet */
#define MIN_MX_SIZE 8 /* corresp to "a.com 0" w/ terminating space */
-struct mxentry *getmxrecords(const char *name)
+struct mxentry *getmxrecords(const unsigned char *name)
/* get MX records for given host */
{
unsigned char answer[PACKETSZ], *eom, *cp, *bp;
diff --git a/report.c b/report.c
index a1e6c7f1..bcca5f64 100644
--- a/report.c
+++ b/report.c
@@ -124,7 +124,7 @@ error (int status, int errnum, const char *message, ...)
error (status, errnum, message, va_alist)
int status;
int errnum;
- char *message;
+ const char *message;
va_dcl
#endif
{
@@ -267,7 +267,7 @@ void
error_build (const char *message, ...)
#else
error_build (message, va_alist)
- char *message;
+ const char *message;
va_dcl
#endif
{
@@ -369,7 +369,7 @@ error_complete (int status, int errnum, const char *message, ...)
error_complete (status, errnum, message, va_alist)
int status;
int errnum;
- char *message;
+ const char *message;
va_dcl
#endif
{
@@ -487,7 +487,7 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist)
int errnum;
const char *file_name;
unsigned int line_number;
- char *message;
+ const char *message;
va_dcl
#endif
{