diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:47 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:47 +0000 |
commit | 1be3101aeab9b6136c32a91c23799724a7fe7797 (patch) | |
tree | 10e45a24782e633b9f6e1f8b427fac91ee2ddfa8 /AuRead.c | |
parent | dcc3fc52f917603df94ef4207f1dec9238dce23b (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'AuRead.c')
-rw-r--r-- | AuRead.c | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -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; |