aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/AuDispose.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-10-04 21:13:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-11-01 16:19:54 +0100
commitc590c64726db5c1a50640332c1383a471c24459d (patch)
tree90d2ee1bbbd5903ac7d6e9a2c908a7c410e1f09d /nx-X11/lib/src/AuDispose.c
parent5929dfdebf9c9914187f1b41f70d0b721def7122 (diff)
downloadnx-libs-c590c64726db5c1a50640332c1383a471c24459d.tar.gz
nx-libs-c590c64726db5c1a50640332c1383a471c24459d.tar.bz2
nx-libs-c590c64726db5c1a50640332c1383a471c24459d.zip
Xau files: adapt code to match upstream libXau 1.0.9
Diffstat (limited to 'nx-X11/lib/src/AuDispose.c')
-rw-r--r--nx-X11/lib/src/AuDispose.c10
1 files changed, 4 insertions, 6 deletions
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 <stdlib.h>
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);