summaryrefslogtreecommitdiff
path: root/comms/modemd/patches/patch-outgoing_tnstate.c
blob: d8b60965b24ad7602c8e52b1444b63c789ec7737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-outgoing_tnstate.c,v 1.2 2013/09/10 14:15:11 joerg Exp $

Add missing header files (for cleanup()).

--- outgoing/tnstate.c.orig	1996-04-30 07:02:49.000000000 +0000
+++ outgoing/tnstate.c
@@ -40,6 +40,8 @@ static char sccsid[] = "@(#)state.c	8.1 
 
 #include "tndefs.h"
 #include "tnext.h"
+#include "cdefs.h"
+#include "global.h"
 
 unsigned char	doopt[] = { IAC, DO, '%', 'c', 0 };
 unsigned char	dont[] = { IAC, DONT, '%', 'c', 0 };
@@ -105,7 +107,7 @@ telrcv()
 			state = TS_DATA;
 			/* Strip off \n or \0 after a \r */
 			if (his_state_is_wont(TELOPT_BINARY)
-			    && (c == 0) || (c == '\n')) {
+			    && ((c == 0) || (c == '\n'))) {
 				break;
 			}
 			/* FALL THROUGH */