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
36e583cf
Commit
36e583cf
authored
8 years ago
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename nxagentOptionFile to nxagentOptionsFilename
parent
b007b542
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+13
-13
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+2
-2
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
36e583cf
...
@@ -135,7 +135,7 @@ char nxagentShadowDisplayName[1024] = {0};
...
@@ -135,7 +135,7 @@ char nxagentShadowDisplayName[1024] = {0};
char
nxagentWindowName
[
256
];
char
nxagentWindowName
[
256
];
char
nxagentDialogName
[
256
];
char
nxagentDialogName
[
256
];
char
nxagentSessionId
[
256
]
=
{
0
};
char
nxagentSessionId
[
256
]
=
{
0
};
char
*
nxagentOption
Fil
e
;
char
*
nxagentOption
sFilenam
e
;
Bool
nxagentFullGeneration
=
False
;
Bool
nxagentFullGeneration
=
False
;
int
nxagentDefaultClass
=
TrueColor
;
int
nxagentDefaultClass
=
TrueColor
;
...
@@ -259,18 +259,18 @@ int ddxProcessArgument(int argc, char *argv[], int i)
...
@@ -259,18 +259,18 @@ int ddxProcessArgument(int argc, char *argv[], int i)
{
{
if
((
!
strcmp
(
argv
[
j
],
"-options"
)
||
!
strcmp
(
argv
[
j
],
"-option"
))
&&
j
+
1
<
argc
)
if
((
!
strcmp
(
argv
[
j
],
"-options"
)
||
!
strcmp
(
argv
[
j
],
"-option"
))
&&
j
+
1
<
argc
)
{
{
if
(
nxagentOption
Fil
e
)
if
(
nxagentOption
sFilenam
e
)
{
{
nxagentOption
File
=
(
char
*
)
realloc
(
nxagentOptionFil
e
,
strlen
(
argv
[
j
+
1
])
+
1
);
nxagentOption
sFilename
=
(
char
*
)
realloc
(
nxagentOptionsFilenam
e
,
strlen
(
argv
[
j
+
1
])
+
1
);
}
}
else
else
{
{
nxagentOption
Fil
e
=
(
char
*
)
malloc
(
strlen
(
argv
[
j
+
1
])
+
1
);
nxagentOption
sFilenam
e
=
(
char
*
)
malloc
(
strlen
(
argv
[
j
+
1
])
+
1
);
}
}
if
(
nxagentOption
Fil
e
!=
NULL
)
if
(
nxagentOption
sFilenam
e
!=
NULL
)
{
{
nxagentOption
File
=
strcpy
(
nxagentOptionFil
e
,
argv
[
j
+
1
]);
nxagentOption
sFilename
=
strcpy
(
nxagentOptionsFilenam
e
,
argv
[
j
+
1
]);
}
}
#ifdef WARNING
#ifdef WARNING
else
else
...
@@ -283,7 +283,7 @@ int ddxProcessArgument(int argc, char *argv[], int i)
...
@@ -283,7 +283,7 @@ int ddxProcessArgument(int argc, char *argv[], int i)
}
}
}
}
if
(
nxagentOption
Fil
e
)
if
(
nxagentOption
sFilenam
e
)
{
{
nxagentProcessOptionsFile
();
nxagentProcessOptionsFile
();
}
}
...
@@ -365,23 +365,23 @@ int ddxProcessArgument(int argc, char *argv[], int i)
...
@@ -365,23 +365,23 @@ int ddxProcessArgument(int argc, char *argv[], int i)
{
{
int
size
;
int
size
;
if
(
nxagentOption
Fil
e
!=
NULL
)
if
(
nxagentOption
sFilenam
e
!=
NULL
)
{
{
free
(
nxagentOption
Fil
e
);
free
(
nxagentOption
sFilenam
e
);
nxagentOption
Fil
e
=
NULL
;
nxagentOption
sFilenam
e
=
NULL
;
}
}
if
((
size
=
strlen
(
argv
[
i
]))
<
1024
)
if
((
size
=
strlen
(
argv
[
i
]))
<
1024
)
{
{
if
((
nxagentOption
Fil
e
=
malloc
(
size
+
1
))
==
NULL
)
if
((
nxagentOption
sFilenam
e
=
malloc
(
size
+
1
))
==
NULL
)
{
{
FatalError
(
"malloc failed"
);
FatalError
(
"malloc failed"
);
}
}
strncpy
(
nxagentOption
Fil
e
,
argv
[
i
],
size
);
strncpy
(
nxagentOption
sFilenam
e
,
argv
[
i
],
size
);
nxagentOption
Fil
e
[
size
]
=
'\0'
;
nxagentOption
sFilenam
e
[
size
]
=
'\0'
;
}
}
else
else
{
{
...
...
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
36e583cf
...
@@ -103,7 +103,7 @@ extern Bool nxagentRenderEnable;
...
@@ -103,7 +103,7 @@ extern Bool nxagentRenderEnable;
extern
char
*
nxagentKeyboard
;
extern
char
*
nxagentKeyboard
;
extern
char
*
nxagentOption
Fil
e
;
extern
char
*
nxagentOption
sFilenam
e
;
enum
SESSION_STATE
nxagentSessionState
=
SESSION_STARTING
;
enum
SESSION_STATE
nxagentSessionState
=
SESSION_STARTING
;
...
@@ -456,7 +456,7 @@ Bool nxagentReconnectSession(void)
...
@@ -456,7 +456,7 @@ Bool nxagentReconnectSession(void)
nxagentResetOptions
();
nxagentResetOptions
();
nxagentProcessOptionsFile
(
nxagentOption
Fil
e
);
nxagentProcessOptionsFile
(
nxagentOption
sFilenam
e
);
if
(
nxagentReconnectDisplay
(
reconnectLossyLevel
[
DISPLAY_STEP
])
==
0
)
if
(
nxagentReconnectDisplay
(
reconnectLossyLevel
[
DISPLAY_STEP
])
==
0
)
{
{
...
...
This diff is collapsed.
Click to expand it.
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