From c590c64726db5c1a50640332c1383a471c24459d Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 4 Oct 2019 21:13:35 +0200 Subject: Xau files: adapt code to match upstream libXau 1.0.9 --- nx-X11/lib/src/AuDispose.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'nx-X11/lib/src/AuDispose.c') diff --git a/nx-X11/lib/src/AuDispose.c b/nx-X11/lib/src/AuDispose.c index bb890201d..215401ae9 100644 --- a/nx-X11/lib/src/AuDispose.c +++ b/nx-X11/lib/src/AuDispose.c @@ -1,4 +1,3 @@ - /* Copyright 1988, 1998 The Open Group @@ -32,13 +31,12 @@ in this Software without prior written authorization from The Open Group. #include void -XauDisposeAuth (auth) -Xauth *auth; +XauDisposeAuth (Xauth *auth) { if (auth) { - if (auth->address) (void) free (auth->address); - if (auth->number) (void) free (auth->number); - if (auth->name) (void) free (auth->name); + free (auth->address); + free (auth->number); + free (auth->name); if (auth->data) { (void) bzero (auth->data, auth->data_length); (void) free (auth->data); -- cgit v1.2.3