Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
bc7a428d
Commit
bc7a428d
authored
Jan 12, 2003
by
Niels Möller
Browse files
Include environ.h, and use those macros for all
getenv calls. Rev: src/client.c:1.146
parent
bc311e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client.c
View file @
bc7a428d
...
...
@@ -27,6 +27,7 @@
#include
"channel.h"
#include
"channel_commands.h"
#include
"connection.h"
#include
"environ.h"
#include
"format.h"
#include
"interact.h"
#include
"io.h"
...
...
@@ -545,7 +546,7 @@ init_client_options(struct client_options *self,
self
->
port
=
NULL
;
self
->
remote
=
NULL
;
self
->
local_user
=
self
->
user
=
getenv
(
"
LOGNAME
"
);
self
->
local_user
=
self
->
user
=
getenv
(
ENV_
LOGNAME
);
self
->
with_remote_peers
=
0
;
self
->
with_pty
=
-
1
;
...
...
@@ -733,7 +734,7 @@ client_maybe_x11(struct client_options *options,
{
if
(
options
->
with_x11
)
{
char
*
display
=
getenv
(
"
DISPLAY
"
);
char
*
display
=
getenv
(
ENV_
DISPLAY
);
struct
command
*
request
=
NULL
;
assert
(
options
->
random
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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