aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-16 15:58:14 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-16 15:58:14 +0000
commit38a0022cafb0204f62e6812cee5add94523c0f53 (patch)
treeae45c5656255a13b6a8902688739de78af354f1d
parent907bf338ca71a4e330750071a308d3029b9009a1 (diff)
downloadfetchmail-38a0022cafb0204f62e6812cee5add94523c0f53.tar.gz
fetchmail-38a0022cafb0204f62e6812cee5add94523c0f53.tar.bz2
fetchmail-38a0022cafb0204f62e6812cee5add94523c0f53.zip
Type cleanup.
svn path=/trunk/; revision=1349
-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
{