got rid of various sundry warnings. rgrimes should've fixed this crap

This commit is contained in:
glass 1993-04-10 16:00:39 +00:00
parent 00c9a79575
commit 6843718d0a
3 changed files with 9 additions and 1 deletions

View File

@ -54,6 +54,8 @@
#include "hd_var.h"
#include "x25.h"
int frame_reject(), rej_routine(), free_iframes();
/*
* HDLC INPUT INTERFACE
*
@ -448,6 +450,7 @@ struct Hdlc_iframe *frame;
{
register struct Frmr_frame *frmr = &hd_frmr;
frmr -> frmr_control = ((struct Hdlc_frame *) frame) -> control;
frmr -> frmr_ns = frame -> ns;
@ -494,6 +497,7 @@ register struct Hdlc_sframe *frame;
int frametype;
{
register int nr = frame -> nr, pf = frame -> pf, pollbit = 0;
int rej_routine();
if (valid_nr (hdp, nr, pf) == TRUE) {
switch (frametype) {
@ -548,6 +552,8 @@ valid_nr (hdp, nr, finalbit)
register struct hdcb *hdp;
register int finalbit;
{
int free_iframes();
/* Make sure it really does acknowledge something. */
if (hdp->hd_lastrxnr == nr)
return (TRUE);

View File

@ -682,7 +682,7 @@ register struct x25config *xcp;
if (xcp -> xc_addr.x25_net && (xcp -> xc_nodnic || xcp ->xc_prepnd0)) {
octet dnicname[sizeof(long) * NBBY/3 + 2];
sprintf (dnicname, "%d", xcp -> xc_addr.x25_net);
sprintf ((char *) dnicname, "%d", xcp -> xc_addr.x25_net);
prune_dnic (buf, sa -> x25_addr, dnicname, xcp);
} else
bcopy ((caddr_t)buf, (caddr_t)sa -> x25_addr, count + 1);

View File

@ -55,6 +55,8 @@
#include "pk.h"
#include "pk_var.h"
int old_to_new(), new_to_old();
/*
*
* X.25 Packet level protocol interface to socket abstraction.