Made things compile under SunOS4 again.
Fix lots of warnings under SunOS4. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1201 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
@@ -99,6 +99,10 @@ char * strlwr(char *);
|
||||
int strnlen(char*, int);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRTOK_R
|
||||
char *strtok_r(char *s1, const char *s2, char **lasts);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRUPR
|
||||
char * strupr(char *);
|
||||
#endif
|
||||
|
@@ -65,7 +65,7 @@
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
@@ -99,6 +99,10 @@ char * strlwr(char *);
|
||||
int strnlen(char*, int);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRTOK_R
|
||||
char *strtok_r(char *s1, const char *s2, char **lasts);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRUPR
|
||||
char * strupr(char *);
|
||||
#endif
|
||||
|
@@ -41,8 +41,9 @@
|
||||
RCSID("$Id$");
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
extern int sys_nerr;
|
||||
extern char *sys_errlist[];
|
||||
|
@@ -43,6 +43,8 @@ RCSID("$Id$");
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "roken.h"
|
||||
|
||||
char *
|
||||
strtok_r(char *s1, const char *s2, char **lasts)
|
||||
{
|
||||
|
@@ -135,7 +135,7 @@ sl_loop (SL_cmd *cmds, char *prompt)
|
||||
ptr = malloc(max_count * sizeof(*ptr));
|
||||
if (ptr == NULL) {
|
||||
printf ("sl_loop: failed to allocate %u bytes of memory\n",
|
||||
max_count * sizeof(*ptr));
|
||||
(int) max_count * sizeof(*ptr));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ sl_loop (SL_cmd *cmds, char *prompt)
|
||||
if (ptr == NULL) {
|
||||
printf ("sl_loop: failed to allocate %u "
|
||||
"bytes of memory\n",
|
||||
max_count * sizeof(*ptr));
|
||||
(int) max_count * sizeof(*ptr));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user