Change first arg of printsub() for 'char' to 'int' so that it builds again.

This matches the binary interface from before if was de-__Peed (or at least
that of K&R C).
In any case having arguments (and return values) of char and short isn't
especially sensible.
This commit is contained in:
dsl 2005-02-06 20:39:35 +00:00
parent d1a1682842
commit e77d2c6bcd
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: externs.h,v 1.32 2005/02/06 17:51:40 tron Exp $ */
/* $NetBSD: externs.h,v 1.33 2005/02/06 20:39:35 dsl Exp $ */
/*
* Copyright (c) 1988, 1990, 1993
@ -331,7 +331,7 @@ void SetNetTrace(char *);
void Dump(int, unsigned char *, int);
void printoption(char *, int, int );
void optionstatus(void);
void printsub(char, unsigned char *, int);
void printsub(int, unsigned char *, int);
void EmptyTerminal(void);
void SetForExit(void);
void Exit(int) __attribute__((__noreturn__));

View File

@ -1,4 +1,4 @@
/* $NetBSD: utilities.c,v 1.20 2005/02/06 17:51:40 tron Exp $ */
/* $NetBSD: utilities.c,v 1.21 2005/02/06 20:39:35 dsl Exp $ */
/*
* Copyright (c) 1988, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95";
#else
__RCSID("$NetBSD: utilities.c,v 1.20 2005/02/06 17:51:40 tron Exp $");
__RCSID("$NetBSD: utilities.c,v 1.21 2005/02/06 20:39:35 dsl Exp $");
#endif
#endif /* not lint */
@ -284,7 +284,7 @@ optionstatus(void)
void
printsub(
char direction, /* '<' or '>' */
int direction, /* '<' or '>' */
unsigned char *pointer, /* where suboption data sits */
int length) /* length of suboption data */
{