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
654422a0
Commit
654422a0
authored
Jan 03, 2018
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error.c: remove trailing whitespace
and insert one single space
parent
6c080c83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+5
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
654422a0
...
@@ -102,7 +102,7 @@ void nxagentGetClientsPath(void);
...
@@ -102,7 +102,7 @@ void nxagentGetClientsPath(void);
static
int
nxagentPrintError
(
Display
*
dpy
,
XErrorEvent
*
event
,
FILE
*
fp
);
static
int
nxagentPrintError
(
Display
*
dpy
,
XErrorEvent
*
event
,
FILE
*
fp
);
/* declare an error handler that does not exit when an error
/* declare an error handler that does not exit when an error
* event is catched.
* event is catched.
*/
*/
...
@@ -171,7 +171,7 @@ static int nxagentPrintError(dpy, event, fp)
...
@@ -171,7 +171,7 @@ static int nxagentPrintError(dpy, event, fp)
buffer
[
0
]
=
'\0'
;
buffer
[
0
]
=
'\0'
;
/*
/*
for (ext = dpy->ext_procs; ext; ext = ext->next) {
for (ext = dpy->ext_procs; ext; ext = ext->next) {
if (ext->error_string)
if (ext->error_string)
(*ext->error_string)(dpy, event->error_code, &ext->codes,
(*ext->error_string)(dpy, event->error_code, &ext->codes,
buffer, BUFSIZ);
buffer, BUFSIZ);
if (buffer[0]) {
if (buffer[0]) {
...
@@ -182,7 +182,7 @@ static int nxagentPrintError(dpy, event, fp)
...
@@ -182,7 +182,7 @@ static int nxagentPrintError(dpy, event, fp)
ext->codes.first_error < (int)event->error_code &&
ext->codes.first_error < (int)event->error_code &&
(!bext || ext->codes.first_error > bext->codes.first_error))
(!bext || ext->codes.first_error > bext->codes.first_error))
bext = ext;
bext = ext;
}
}
if (bext)
if (bext)
sprintf(buffer, "%s.%d", bext->name,
sprintf(buffer, "%s.%d", bext->name,
event->error_code - bext->codes.first_error);
event->error_code - bext->codes.first_error);
...
@@ -225,7 +225,7 @@ static int nxagentPrintError(dpy, event, fp)
...
@@ -225,7 +225,7 @@ static int nxagentPrintError(dpy, event, fp)
(
void
)
fprintf
(
fp
,
mesg
,
event
->
resourceid
);
(
void
)
fprintf
(
fp
,
mesg
,
event
->
resourceid
);
fputs
(
"
\n
"
,
fp
);
fputs
(
"
\n
"
,
fp
);
}
}
XGetErrorDatabaseText
(
dpy
,
mtype
,
"ErrorSerial"
,
"Error Serial #%d"
,
XGetErrorDatabaseText
(
dpy
,
mtype
,
"ErrorSerial"
,
"Error Serial #%d"
,
mesg
,
BUFSIZ
);
mesg
,
BUFSIZ
);
fputs
(
" "
,
fp
);
fputs
(
" "
,
fp
);
(
void
)
fprintf
(
fp
,
mesg
,
event
->
serial
);
(
void
)
fprintf
(
fp
,
mesg
,
event
->
serial
);
...
@@ -252,7 +252,7 @@ void nxagentOpenClientsLogFile()
...
@@ -252,7 +252,7 @@ void nxagentOpenClientsLogFile()
nxagentGetClientsPath
();
nxagentGetClientsPath
();
}
}
if
(
nxagentClientsLogName
!=
NULL
&&
*
nxagentClientsLogName
!=
'\0'
)
if
(
nxagentClientsLogName
!=
NULL
&&
*
nxagentClientsLogName
!=
'\0'
)
{
{
nxagentClientsLog
=
open
(
nxagentClientsLogName
,
O_RDWR
|
O_CREAT
|
O_APPEND
,
0600
);
nxagentClientsLog
=
open
(
nxagentClientsLogName
,
O_RDWR
|
O_CREAT
|
O_APPEND
,
0600
);
...
...
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