Fix a few more compiler warnings.

This commit is contained in:
John "Elwin" Edwards 2017-09-18 19:36:14 -04:00
parent 0936c8f216
commit 90d5708d84
8 changed files with 11 additions and 7 deletions

View file

@ -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

View file

@ -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--)
{

View file

@ -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

View file

@ -1181,7 +1181,7 @@ str_compute(void)
void
strucpy(char *s1, char *s2, int len)
{
register char *sp;
const char *sp;
while (len--)
{

View file

@ -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,

View file

@ -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)));

View file

@ -53,6 +53,7 @@
#include <utmpx.h>
#endif
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
@ -724,7 +725,7 @@ md_killchar()
* Print a readable version of a certain character
*/
char *
const char *
md_unctrl(char ch)
{
#if USG5_0

View file

@ -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)));