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
0371276f
Commit
0371276f
authored
Feb 26, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hw/nxagent/: Stop using non-portable '__progname', set up our own…
hw/nxagent/: Stop using non-portable '__progname', set up our own 'nxagentProgName' instead and pass it around where needed.
parent
99fb9817
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+5
-3
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+2
-2
utils.c
nx-X11/programs/Xserver/os/utils.c
+2
-2
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
0371276f
...
...
@@ -124,7 +124,7 @@ extern int _XGetBitsPerPixel(Display *dpy, int depth);
extern
char
dispatchExceptionAtReset
;
extern
const
char
*
__progn
ame
;
const
char
*
nxagentProgN
ame
;
char
nxagentDisplayName
[
NXAGENTDISPLAYNAMELENGTH
];
Bool
nxagentSynchronize
=
False
;
...
...
@@ -185,6 +185,8 @@ int ddxProcessArgument(int argc, char *argv[], int i)
* Ensure that the options are set to their defaults.
*/
nxagentProgName
=
argv
[
0
];
static
Bool
resetOptions
=
True
;
if
(
resetOptions
==
True
)
...
...
@@ -1185,13 +1187,13 @@ static void nxagentParseOptions(char *name, char *value)
{
#if !defined(PANORAMIX) && !defined(RANDR)
nxagentChangeOption
(
Xinerama
,
0
);
fprintf
(
stderr
,
"Warning: No Xinerama support compiled into %s.
\n
"
,
__progn
ame
);
fprintf
(
stderr
,
"Warning: No Xinerama support compiled into %s.
\n
"
,
nxagentProgN
ame
);
return
;
#else
if
(
PANORAMIX_DISABLED_COND
&&
RRXINERAMA_DISABLED_COND
)
{
nxagentChangeOption
(
Xinerama
,
0
);
fprintf
(
stderr
,
"Warning: XINERAMA extension has been disabled on %s startup.
\n
"
,
__progn
ame
);
fprintf
(
stderr
,
"Warning: XINERAMA extension has been disabled on %s startup.
\n
"
,
nxagentProgN
ame
);
return
;
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
0371276f
...
...
@@ -194,8 +194,8 @@ int nxagentX2go;
void
checkX2goAgent
()
{
extern
const
char
*
__progn
ame
;
if
(
strcasecmp
(
__progn
ame
,
"x2goagent"
)
==
0
)
extern
const
char
*
nxagentProgN
ame
;
if
(
strcasecmp
(
nxagentProgN
ame
,
"x2goagent"
)
==
0
)
{
fprintf
(
stderr
,
"
\n
running as X2Go Agent
\n
"
);
nxagentX2go
=
1
;
...
...
nx-X11/programs/Xserver/os/utils.c
View file @
0371276f
...
...
@@ -557,8 +557,8 @@ AdjustWaitForDelay (void * waitTime, unsigned long newdelay)
void
UseMsg
(
void
)
{
#ifdef NXAGENT_SERVER
extern
const
char
*
__progn
ame
;
ErrorF
(
"Usage: %s [<options>] [:<display>]
\n\n
"
,
__progn
ame
);
extern
const
char
*
nxagentProgN
ame
;
ErrorF
(
"Usage: %s [<options>] [:<display>]
\n\n
"
,
nxagentProgN
ame
);
#else
ErrorF
(
"use: X [:<display>] [option]
\n
"
);
#endif
...
...
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