From 1be3101aeab9b6136c32a91c23799724a7fe7797 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:48:47 +0000 Subject: XFree86 4.3.0.1 --- AuUnlock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'AuUnlock.c') diff --git a/AuUnlock.c b/AuUnlock.c index 0832c82..7c7eb01 100644 --- a/AuUnlock.c +++ b/AuUnlock.c @@ -25,10 +25,12 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/lib/Xau/AuUnlock.c,v 1.4 2001/12/14 19:54:36 dawes Exp $ */ #include #include +int #if NeedFunctionPrototypes XauUnlockAuth ( _Xconst char *file_name) @@ -43,7 +45,7 @@ char *file_name; char link_name[1025]; if (strlen (file_name) > 1022) - return; + return 0; #ifndef WIN32 (void) strcpy (creat_name, file_name); (void) strcat (creat_name, "-c"); @@ -57,4 +59,6 @@ char *file_name; (void) unlink (creat_name); #endif (void) unlink (link_name); + + return 1; } -- cgit v1.2.3