diff --git a/arogue5/mdport.c b/arogue5/mdport.c index 1f91f6b..997aa1e 100644 --- a/arogue5/mdport.c +++ b/arogue5/mdport.c @@ -666,7 +666,7 @@ md_killchar(void) * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff --git a/arogue5/util.c b/arogue5/util.c index 70bd834..de6bc27 100644 --- a/arogue5/util.c +++ b/arogue5/util.c @@ -839,7 +839,7 @@ secretdoor(int y, int x) void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { diff --git a/arogue7/mdport.c b/arogue7/mdport.c index a8e56dd..7df1f19 100644 --- a/arogue7/mdport.c +++ b/arogue7/mdport.c @@ -647,7 +647,7 @@ md_killchar(void) * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff --git a/arogue7/util.c b/arogue7/util.c index 9ccb23d..6e2d830 100644 --- a/arogue7/util.c +++ b/arogue7/util.c @@ -1181,7 +1181,7 @@ str_compute(void) void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { diff --git a/arogue7/xcrypt.c b/arogue7/xcrypt.c index bb47c0d..aa6856b 100644 --- a/arogue7/xcrypt.c +++ b/arogue7/xcrypt.c @@ -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 --git a/srogue/options.c b/srogue/options.c index ab8495a..84876a5 100644 --- a/srogue/options.c +++ b/srogue/options.c @@ -234,7 +234,7 @@ parse_opts(char *str) void strucpy(char *s1, char *s2, int len) { - reg char *sp; + const char *sp; while (len-- > 0) { strcpy(s1, (sp = unctrl(*s2))); diff --git a/urogue/mdport.c b/urogue/mdport.c index fc098c3..0e3830f 100644 --- a/urogue/mdport.c +++ b/urogue/mdport.c @@ -53,6 +53,7 @@ #include #endif +#include #include #include @@ -724,7 +725,7 @@ md_killchar() * Print a readable version of a certain character */ -char * +const char * md_unctrl(char ch) { #if USG5_0 diff --git a/xrogue/util.c b/xrogue/util.c index 0e584bc..efa0c57 100644 --- a/xrogue/util.c +++ b/xrogue/util.c @@ -1204,7 +1204,7 @@ str_compute(void) void strucpy(char *s1, char *s2, int len) { - register char *sp; + const char *sp; while (len--) { strcpy(s1, (sp = unctrl(*s2)));