summaryrefslogtreecommitdiff
path: root/AuRead.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 /AuRead.c
parentdcc3fc52f917603df94ef4207f1dec9238dce23b (diff)
Diffstat (limited to 'AuRead.c')
-rw-r--r--AuRead.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/AuRead.c b/AuRead.c
index 28437d1..d547205 100644
--- a/AuRead.c
+++ b/AuRead.c
@@ -25,13 +25,13 @@ 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/AuRead.c,v 1.6 2001/12/14 19:54:36 dawes Exp $ */
#include <X11/Xauth.h>
+#include <stdlib.h>
-static
-read_short (shortp, file)
-unsigned short *shortp;
-FILE *file;
+static int
+read_short (unsigned short *shortp, FILE *file)
{
unsigned char file_short[2];
@@ -41,14 +41,11 @@ FILE *file;
return 1;
}
-static
-read_counted_string (countp, stringp, file)
-unsigned short *countp;
-char **stringp;
-FILE *file;
+static int
+read_counted_string (unsigned short *countp, char **stringp, FILE *file)
{
unsigned short len;
- char *data, *malloc ();
+ char *data;
if (read_short (&len, file) == 0)
return 0;
@@ -75,7 +72,6 @@ FILE *auth_file;
{
Xauth local;
Xauth *ret;
- char *malloc ();
if (read_short (&local.family, auth_file) == 0)
return 0;