Fix a few more compiler warnings.
This commit is contained in:
parent
0936c8f216
commit
90d5708d84
8 changed files with 11 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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--)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1181,7 +1181,7 @@ str_compute(void)
|
|||
void
|
||||
strucpy(char *s1, char *s2, int len)
|
||||
{
|
||||
register char *sp;
|
||||
const char *sp;
|
||||
|
||||
while (len--)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue