summaryrefslogtreecommitdiff
path: root/zwgc/notice.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 18:12:16 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 18:12:16 +0000
commitce6018836c422c86a729ba39fe5433ec11b87b02 (patch)
treecc2e6601489384fcf41e0565e8906822897b46c8 /zwgc/notice.c
parentac16f380e349fa39ec7e26bccb5456cb300006a5 (diff)
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'zwgc/notice.c')
-rw-r--r--zwgc/notice.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zwgc/notice.c b/zwgc/notice.c
index 543f272..4e14946 100644
--- a/zwgc/notice.c
+++ b/zwgc/notice.c
@@ -12,8 +12,10 @@
* "mit-copyright.h".
*/
+#include <sysdep.h>
+
#if (!defined(lint) && !defined(SABER))
-static char rcsid_notice_c[] = "$Id$";
+static const char rcsid_notice_c[] = "$Id$";
#endif
#include <zephyr/mit-copyright.h>
@@ -308,7 +310,7 @@ char *decode_notice(notice)
* Convert host notice sent from to ascii:
*/
if (notice->z_sender_addr.s_addr) {
- fromhost = gethostbyaddr(&(notice->z_sender_addr),
+ fromhost = gethostbyaddr((char *) &(notice->z_sender_addr),
sizeof(struct in_addr), AF_INET);
var_set_variable("fromhost", fromhost ? fromhost->h_name :
inet_ntoa(notice->z_sender_addr));