summaryrefslogtreecommitdiff
path: root/AuUnlock.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:47 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:47 +0000
commit1be3101aeab9b6136c32a91c23799724a7fe7797 (patch)
tree10e45a24782e633b9f6e1f8b427fac91ee2ddfa8 /AuUnlock.c
parentdcc3fc52f917603df94ef4207f1dec9238dce23b (diff)
downloadxorg-lib-libXau-1be3101aeab9b6136c32a91c23799724a7fe7797.tar.gz
Diffstat (limited to 'AuUnlock.c')
-rw-r--r--AuUnlock.c6
1 files changed, 5 insertions, 1 deletions
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 <X11/Xauth.h>
#include <X11/Xos.h>
+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;
}