aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-10-04 21:03:47 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-11-01 16:19:54 +0100
commit9deebfc8faf3572747fb08fe13ced80ff51cad32 (patch)
tree8ec18ca54a291d61ef1249e076e194c90c4d01d7 /nx-X11/lib/src
parenta7355c5c8ab9c013f4f0a75175a718ee3f4e970a (diff)
downloadnx-libs-9deebfc8faf3572747fb08fe13ced80ff51cad32.tar.gz
nx-libs-9deebfc8faf3572747fb08fe13ced80ff51cad32.tar.bz2
nx-libs-9deebfc8faf3572747fb08fe13ced80ff51cad32.zip
AuRead.c: whitespace cleanup
Diffstat (limited to 'nx-X11/lib/src')
-rw-r--r--nx-X11/lib/src/AuRead.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/nx-X11/lib/src/AuRead.c b/nx-X11/lib/src/AuRead.c
index 5c04c3258..d63dc96e9 100644
--- a/nx-X11/lib/src/AuRead.c
+++ b/nx-X11/lib/src/AuRead.c
@@ -68,16 +68,16 @@ static int
read_counted_string (unsigned short *countp, char **stringp, FILE *file)
{
unsigned short len;
- char *data;
+ char *data;
if (read_short (&len, file) == 0)
- return 0;
+ return 0;
if (len == 0) {
- data = 0;
+ data = 0;
} else {
- data = malloc ((unsigned) len);
- if (!data)
- return 0;
+ data = malloc ((unsigned) len);
+ if (!data)
+ return 0;
#ifdef NX_TRANS_SOCKET
for (;;)
{
@@ -89,10 +89,10 @@ read_counted_string (unsigned short *countp, char **stringp, FILE *file)
clearerr (file);
continue;
}
- bzero (data, len);
- free (data);
- return 0;
- }
+ bzero (data, len);
+ free (data);
+ return 0;
+ }
break;
}
#else
@@ -110,40 +110,40 @@ read_counted_string (unsigned short *countp, char **stringp, FILE *file)
Xauth *
XauReadAuth (auth_file)
-FILE *auth_file;
+FILE *auth_file;
{
Xauth local;
Xauth *ret;
if (read_short (&local.family, auth_file) == 0)
- return 0;
+ return 0;
if (read_counted_string (&local.address_length, &local.address, auth_file) == 0)
- return 0;
+ return 0;
if (read_counted_string (&local.number_length, &local.number, auth_file) == 0) {
- if (local.address) free (local.address);
- return 0;
+ if (local.address) free (local.address);
+ return 0;
}
if (read_counted_string (&local.name_length, &local.name, auth_file) == 0) {
- if (local.address) free (local.address);
- if (local.number) free (local.number);
- return 0;
+ if (local.address) free (local.address);
+ if (local.number) free (local.number);
+ return 0;
}
if (read_counted_string (&local.data_length, &local.data, auth_file) == 0) {
- if (local.address) free (local.address);
- if (local.number) free (local.number);
- if (local.name) free (local.name);
- return 0;
+ if (local.address) free (local.address);
+ if (local.number) free (local.number);
+ if (local.name) free (local.name);
+ return 0;
}
ret = (Xauth *) malloc (sizeof (Xauth));
if (!ret) {
- if (local.address) free (local.address);
- if (local.number) free (local.number);
- if (local.name) free (local.name);
- if (local.data) {
- bzero (local.data, local.data_length);
- free (local.data);
- }
- return 0;
+ if (local.address) free (local.address);
+ if (local.number) free (local.number);
+ if (local.name) free (local.name);
+ if (local.data) {
+ bzero (local.data, local.data_length);
+ free (local.data);
+ }
+ return 0;
}
*ret = local;
return ret;