From 7a1403c6c59c30feb904a10675685c305f32555f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 11:57:06 +0100 Subject: axspawn: Sort out homebrew declaration of forkpty(3). Signed-off-by: Ralf Baechle --- ax25/axspawn.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'ax25/axspawn.c') diff --git a/ax25/axspawn.c b/ax25/axspawn.c index 7094e1c..e16cc2c 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -128,10 +128,6 @@ * be within the range of 0 and 15. Please drop me a note if you * know a valid Amateur Radio (sic!) callsign that does not fit this * pattern _and_ can be represented correctly in AX.25. - * - * It uses the forkpty from libbsd.a (found after analyzing logind) - * which has no prototype in any of my .h files. - * */ /* removed -h from login command as it was causing hostname lookups @@ -154,6 +150,7 @@ #include #include #include +#include #include #include #include @@ -501,11 +498,6 @@ static int Strncasecmp(const char *s1, const char *s2, int n) return n < 0 ? 0 : Xtolower(*s1) - Xtolower(*s2); } -/* This one is in /usr/lib/libbsd.a, but not in bsd.h and fellows... weird. */ -/* (found in logind.c) */ - -pid_t forkpty(int *, char *, void *, struct winsize *); - /* The buffer in src (first byte length-1) is decoded into dest (first byte length-1). If decoding is not successful, non-0 is returned -- cgit v1.2.3