summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 11:57:06 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit7a1403c6c59c30feb904a10675685c305f32555f (patch)
tree97165c41496bc4784750ea130b967a4dc518a825
parent73fb76ce8fe467bf3708bab3f794cfe935f27545 (diff)
axspawn: Sort out homebrew declaration of forkpty(3).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25/axspawn.c10
1 files changed, 1 insertions, 9 deletions
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 <protocol> from login command as it was causing hostname lookups
@@ -154,6 +150,7 @@
#include <time.h>
#include <pwd.h>
#include <grp.h>
+#include <pty.h>
#include <utmp.h>
#include <paths.h>
#include <errno.h>
@@ -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