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
f8e20d05
Commit
f8e20d05
authored
Aug 23, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Args.c: rename nxagentParseOptions to nxagentParseSingleOption
new name is more descriptive
parent
fad80bc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+14
-14
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
f8e20d05
...
...
@@ -1037,14 +1037,14 @@ int ddxProcessArgument(int argc, char *argv[], int i)
return
0
;
}
static
void
nxagentParse
Options
(
char
*
name
,
char
*
value
)
static
void
nxagentParse
SingleOption
(
char
*
name
,
char
*
value
)
{
int
size
,
argc
;
char
*
argv
[
2
]
=
{
NULL
,
NULL
};
#ifdef TEST
fprintf
(
stderr
,
"nxagentParse
Options
: Processing option '%s' = '%s'.
\n
"
,
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Processing option '%s' = '%s'.
\n
"
,
validateString
(
name
),
validateString
(
value
));
#endif
...
...
@@ -1081,7 +1081,7 @@ static void nxagentParseOptions(char *name, char *value)
if
(
nxagentReconnectTrap
==
True
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParse
Options
: Ignoring option 'render' at reconnection.
\n
"
);
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Ignoring option 'render' at reconnection.
\n
"
);
#endif
}
else
if
(
nxagentRenderEnable
==
UNDEFINED
)
...
...
@@ -1113,7 +1113,7 @@ static void nxagentParseOptions(char *name, char *value)
if
(
nxagentReconnectTrap
==
True
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParse
Options
: Ignoring option 'fullscreen' at reconnection.
\n
"
);
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Ignoring option 'fullscreen' at reconnection.
\n
"
);
#endif
}
else
if
(
!
strcmp
(
value
,
"1"
))
...
...
@@ -1283,7 +1283,7 @@ static void nxagentParseOptions(char *name, char *value)
if
(
nxagentReconnectTrap
==
True
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParse
Options
: Ignoring option 'autodpi' at reconnection.
\n
"
);
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Ignoring option 'autodpi' at reconnection.
\n
"
);
#endif
}
else
if
(
!
strcmp
(
value
,
"0"
))
...
...
@@ -1368,7 +1368,7 @@ static void nxagentParseOptions(char *name, char *value)
if
((
errno
)
&&
(
0
==
sleep_parse
))
{
fprintf
(
stderr
,
"nxagentParse
Options
: Unable to convert value [%s] of option [%s]. "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Unable to convert value [%s] of option [%s]. "
"Ignoring option.
\n
"
,
validateString
(
value
),
validateString
(
name
));
...
...
@@ -1379,7 +1379,7 @@ static void nxagentParseOptions(char *name, char *value)
{
sleep_parse
=
UINT_MAX
;
fprintf
(
stderr
,
"nxagentParse
Options
: Warning: value [%s] of option [%s] "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].
\n
"
,
validateString
(
value
),
validateString
(
name
),
sleep_parse
);
}
...
...
@@ -1388,7 +1388,7 @@ static void nxagentParseOptions(char *name, char *value)
{
sleep_parse
=
0
;
fprintf
(
stderr
,
"nxagentParse
Options
: Warning: value [%s] of option [%s] "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].
\n
"
,
validateString
(
value
),
validateString
(
name
),
sleep_parse
);
}
...
...
@@ -1427,7 +1427,7 @@ static void nxagentParseOptions(char *name, char *value)
if
((
errno
)
&&
(
0
==
tolerance_parse
))
{
fprintf
(
stderr
,
"nxagentParse
Options
: Unable to convert value [%s] of option [%s]. "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Unable to convert value [%s] of option [%s]. "
"Ignoring option.
\n
"
,
validateString
(
value
),
validateString
(
name
));
...
...
@@ -1438,7 +1438,7 @@ static void nxagentParseOptions(char *name, char *value)
{
tolerance_parse
=
UINT_MAX
;
fprintf
(
stderr
,
"nxagentParse
Options
: Warning: value [%s] of option [%s] "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].
\n
"
,
validateString
(
value
),
validateString
(
name
),
tolerance_parse
);
}
...
...
@@ -1447,7 +1447,7 @@ static void nxagentParseOptions(char *name, char *value)
{
tolerance_parse
=
0
;
fprintf
(
stderr
,
"nxagentParse
Options
: Warning: value [%s] of option [%s] "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].
\n
"
,
validateString
(
value
),
validateString
(
name
),
tolerance_parse
);
}
...
...
@@ -1460,7 +1460,7 @@ static void nxagentParseOptions(char *name, char *value)
case
ToleranceChecksBypass
:
break
;
default:
fprintf
(
stderr
,
"nxagentParse
Options
: Warning: value [%s] of "
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Warning: value [%s] of "
"option [%s] unknown, will be mapped to "
"
\"
Bypass
\"
[%u] value internally.
\n
"
,
validateString
(
value
),
validateString
(
name
),
...
...
@@ -1495,7 +1495,7 @@ static void nxagentParseOptions(char *name, char *value)
else
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParse
Options
: Ignored option [%s] with value [%s].
\n
"
,
fprintf
(
stderr
,
"nxagentParse
SingleOption
: Ignored option [%s] with value [%s].
\n
"
,
validateString
(
name
),
validateString
(
value
));
#endif
...
...
@@ -1563,7 +1563,7 @@ static void nxagentParseOptionString(char *string)
value
=
NULL
;
}
nxagentParse
Options
(
option
,
value
);
nxagentParse
SingleOption
(
option
,
value
);
}
}
...
...
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