Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
9deebfc8
Commit
9deebfc8
authored
Oct 04, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AuRead.c: whitespace cleanup
parent
a7355c5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
AuRead.c
nx-X11/lib/src/AuRead.c
+30
-30
No files found.
nx-X11/lib/src/AuRead.c
View file @
9deebfc8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment