summaryrefslogtreecommitdiff
path: root/www/screws/patches/patch-aj
blob: ca69feee06410dc5452aa812c9ed47818bd3187d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aj,v 1.1 2008/08/17 20:09:12 dholland Exp $

--- src/Server/Error.c~	2004-09-16 18:05:58.000000000 -0400
+++ src/Server/Error.c	2008-08-17 15:55:37.000000000 -0400
@@ -3,6 +3,7 @@
  * Copylefted by pancake@phreaker.net at 2003
  */
 
+#include <unistd.h>
 #include "Error.h"
 
 /* Error strings array */
@@ -45,7 +46,7 @@ Error(str,err)
 	char *cwd;
 	if ( err==ERROR_CHDIR )
 	{
-		cwd=(char*)getcwd((char*)0,0); // Use static instead of alloc
+		cwd=getcwd((char*)0,0); // Use static instead of alloc
 		if (cwd)
 		{
 			printf("CWD : %s",cwd);