summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-aq
blob: 7c36bc1d28076e11a960f3126e8fa7575aa026e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aq,v 1.3 2008/12/17 02:19:59 christos Exp $

--- icb/s_chpw.c.orig	1995-02-24 16:20:27.000000000 -0500
+++ icb/s_chpw.c	2008-12-16 20:18:01.000000000 -0500
@@ -6,6 +6,8 @@
 
 #include "icb.h"
 #include "externs.h"
+#include <stdlib.h>
+#include <unistd.h>
 
 s_chpw(TARGLIST)
 TARGDEFS
@@ -21,7 +23,7 @@
 	if (argc > 1 && argv[1][0])
 		strcpy(old, argv[1]);
 	else
-		strcpy(old, (char *) getpass ("Enter old password:"));
+		strcpy(old, getpass ("Enter old password:"));
 
 	if (argc > 2)
 		strcpy(new1, argv[2]);