mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-25 20:11:36 +00:00
fix warning: a function declaration without a prototype is deprecated in all versions of C
make savestr() static and remove it from dlpidefs.h since it is not used outside of dlpi.c
This commit is contained in:
@@ -4,6 +4,5 @@
|
|||||||
int setup_dlpi_dev(char *device);
|
int setup_dlpi_dev(char *device);
|
||||||
void flush_dlpi(int fd);
|
void flush_dlpi(int fd);
|
||||||
int dlpi_devtype(int fd);
|
int dlpi_devtype(int fd);
|
||||||
char *savestr(char *s);
|
|
||||||
int dlunitdatareq(int fd, u_char *addrp, int addrlen, u_long minpri, u_long maxpri, u_char *datap, int datalen);
|
int dlunitdatareq(int fd, u_char *addrp, int addrlen, u_long minpri, u_long maxpri, u_char *datap, int datalen);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
28
src/dlpi.c
28
src/dlpi.c
@@ -78,17 +78,18 @@
|
|||||||
|
|
||||||
#include "nfswatch.h"
|
#include "nfswatch.h"
|
||||||
|
|
||||||
static void dlbindreq();
|
static void dlbindreq(int fd, u_long sap, u_long max_conind, u_long service_mode, u_long conn_mgmt, u_long xidtest);
|
||||||
static void dlinforeq();
|
static void dlinforeq(int fd);
|
||||||
static void dlattachreq();
|
static void dlattachreq(int fd, u_long ppa);
|
||||||
static void dlpromisconreq();
|
static void dlpromisconreq(int fd, u_long level);
|
||||||
static void sigalrm();
|
static void sigalrm(int sig);
|
||||||
static int dlokack();
|
static int dlokack(int fd, char *bufp);
|
||||||
static int dlinfoack();
|
static int dlinfoack(int fd, char *bufp);
|
||||||
static int dlbindack();
|
static int dlbindack(int fd, char *bufp);
|
||||||
static int expecting();
|
static int expecting(int prim, union DL_primitives *dlp);
|
||||||
static int strgetmsg();
|
static int strgetmsg(int fd, struct strbuf *ctlp, struct strbuf *datap, int *flagsp, char *caller);
|
||||||
static char *savestr();
|
static char *savestr(char *s)
|
||||||
|
|
||||||
static char *pname;
|
static char *pname;
|
||||||
|
|
||||||
extern unsigned char ether_host[6];
|
extern unsigned char ether_host[6];
|
||||||
@@ -538,7 +539,6 @@ static int expecting(int prim, union DL_primitives *dlp)
|
|||||||
static int strgetmsg(int fd, struct strbuf *ctlp, struct strbuf *datap, int *flagsp, char *caller)
|
static int strgetmsg(int fd, struct strbuf *ctlp, struct strbuf *datap, int *flagsp, char *caller)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
void sigalrm();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start timer.
|
* Start timer.
|
||||||
@@ -585,12 +585,12 @@ static int strgetmsg(int fd, struct strbuf *ctlp, struct strbuf *datap, int *fla
|
|||||||
/*
|
/*
|
||||||
* sigalrm - handle alarms.
|
* sigalrm - handle alarms.
|
||||||
*/
|
*/
|
||||||
static void sigalrm() { (void)fprintf(stderr, "dlpi: timeout\n"); }
|
static void sigalrm(int sig) { (void)fprintf(stderr, "dlpi: timeout\n"); }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* savestr - save string in dynamic memory.
|
* savestr - save string in dynamic memory.
|
||||||
*/
|
*/
|
||||||
char *savestr(char *s)
|
static char *savestr(char *s)
|
||||||
{
|
{
|
||||||
char *t;
|
char *t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user