pkgsrc/chat/icb/patches/patch-ao
christos 460bd4190f make this work on 64 bit platforms:
- fix warnings for missing prototypes
- use termios instead of sgtty (why doesn't this work on amd64?)
2008-12-17 02:19:59 +00:00

22 lines
517 B
Text

$NetBSD: patch-ao,v 1.4 2008/12/17 02:19:59 christos Exp $
--- icb/register.c.orig 1995-02-24 16:20:26.000000000 -0500
+++ icb/register.c 2008-12-16 20:18:01.000000000 -0500
@@ -5,6 +5,8 @@
#include "icb.h"
#include "externs.h"
+#include <stdlib.h>
+#include <unistd.h>
void
regnick(password)
@@ -13,7 +15,7 @@
char message[256];
if (!password)
- password = (char *)getpass("Password:");
+ password = getpass("Password:");
sprintf(message,"p %s", password);
sendpersonal("server",message,-1);