# HG changeset patch # User John "Elwin" Edwards # Date 1505777774 14400 # Node ID d71e5e1f49cf980a59ca79fe463398a75bb374a9 # Parent 8b6aba552f6f6f45e789e13324d4476323531de9 Fix a few more compiler warnings. diff -r 8b6aba552f6f -r d71e5e1f49cf arogue5/mdport.c --- a/arogue5/mdport.c Mon Sep 18 19:11:57 2017 -0400 +++ b/arogue5/mdport.c Mon Sep 18 19:36:14 2017 -0400 @@ -666,7 +666,7 @@ * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff -r 8b6aba552f6f -r d71e5e1f49cf arogue5/util.c --- a/arogue5/util.c Mon Sep 18 19:11:57 2017 -0400 +++ b/arogue5/util.c Mon Sep 18 19:36:14 2017 -0400 @@ -839,7 +839,7 @@ void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { diff -r 8b6aba552f6f -r d71e5e1f49cf arogue7/mdport.c --- a/arogue7/mdport.c Mon Sep 18 19:11:57 2017 -0400 +++ b/arogue7/mdport.c Mon Sep 18 19:36:14 2017 -0400 @@ -647,7 +647,7 @@ * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff -r 8b6aba552f6f -r d71e5e1f49cf arogue7/util.c --- a/arogue7/util.c Mon Sep 18 19:11:57 2017 -0400 +++ b/arogue7/util.c Mon Sep 18 19:36:14 2017 -0400 @@ -1181,7 +1181,7 @@ void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { diff -r 8b6aba552f6f -r d71e5e1f49cf arogue7/xcrypt.c --- a/arogue7/xcrypt.c Mon Sep 18 19:11:57 2017 -0400 +++ b/arogue7/xcrypt.c Mon Sep 18 19:36:14 2017 -0400 @@ -57,6 +57,9 @@ #endif #define _PASSWORD_EFMT1 '_' +unsigned long int md_htonl(unsigned long int x); +unsigned long int md_ntohl(unsigned long int x); + static unsigned char IP[64] = { 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, diff -r 8b6aba552f6f -r d71e5e1f49cf srogue/options.c --- a/srogue/options.c Mon Sep 18 19:11:57 2017 -0400 +++ b/srogue/options.c Mon Sep 18 19:36:14 2017 -0400 @@ -234,7 +234,7 @@ void strucpy(char *s1, char *s2, int len) { - reg char *sp; + const char *sp; while (len-- > 0) { strcpy(s1, (sp = unctrl(*s2))); diff -r 8b6aba552f6f -r d71e5e1f49cf urogue/mdport.c --- a/urogue/mdport.c Mon Sep 18 19:11:57 2017 -0400 +++ b/urogue/mdport.c Mon Sep 18 19:36:14 2017 -0400 @@ -53,6 +53,7 @@ #include #endif +#include #include #include @@ -724,7 +725,7 @@ * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff -r 8b6aba552f6f -r d71e5e1f49cf xrogue/util.c --- a/xrogue/util.c Mon Sep 18 19:11:57 2017 -0400 +++ b/xrogue/util.c Mon Sep 18 19:36:14 2017 -0400 @@ -1204,7 +1204,7 @@ void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { strcpy(s1, (sp = unctrl(*s2)));