summaryrefslogtreecommitdiff
path: root/AuWrite.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 /AuWrite.c
parentdcc3fc52f917603df94ef4207f1dec9238dce23b (diff)
Diffstat (limited to 'AuWrite.c')
-rw-r--r--AuWrite.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/AuWrite.c b/AuWrite.c
index f372c93..e1f352e 100644
--- a/AuWrite.c
+++ b/AuWrite.c
@@ -25,13 +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/AuWrite.c,v 1.4 2001/12/14 19:54:36 dawes Exp $ */
#include <X11/Xauth.h>
-static
-write_short (s, file)
-unsigned short s;
-FILE *file;
+static int
+write_short (unsigned short s, FILE *file)
{
unsigned char file_short[2];
@@ -42,11 +41,8 @@ FILE *file;
return 1;
}
-static
-write_counted_string (count, string, file)
-unsigned short count;
-char *string;
-FILE *file;
+static int
+write_counted_string (unsigned short count, char *string, FILE *file)
{
if (write_short (count, file) == 0)
return 0;
@@ -60,8 +56,6 @@ XauWriteAuth (auth_file, auth)
FILE *auth_file;
Xauth *auth;
{
- char *malloc ();
-
if (write_short (auth->family, auth_file) == 0)
return 0;
if (write_counted_string (auth->address_length, auth->address, auth_file) == 0)