Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/telnet Change first arg of printsub() for 'char' to ...



details:   https://anonhg.NetBSD.org/src/rev/a8c6e78204e2
branches:  trunk
changeset: 573744:a8c6e78204e2
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sun Feb 06 20:39:35 2005 +0000

description:
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.

diffstat:

 usr.bin/telnet/externs.h   |  4 ++--
 usr.bin/telnet/utilities.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 0f0ddc14ca86 -r a8c6e78204e2 usr.bin/telnet/externs.h
--- a/usr.bin/telnet/externs.h  Sun Feb 06 20:22:15 2005 +0000
+++ b/usr.bin/telnet/externs.h  Sun Feb 06 20:39:35 2005 +0000
@@ -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 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__));
diff -r 0f0ddc14ca86 -r a8c6e78204e2 usr.bin/telnet/utilities.c
--- a/usr.bin/telnet/utilities.c        Sun Feb 06 20:22:15 2005 +0000
+++ b/usr.bin/telnet/utilities.c        Sun Feb 06 20:39:35 2005 +0000
@@ -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 @@
 
 void
 printsub(
-    char direction,    /* '<' or '>' */
+    int direction,     /* '<' or '>' */
     unsigned char *pointer,    /* where suboption data sits */
     int                  length)       /* length of suboption data */
 {



Home | Main Index | Thread Index | Old Index