diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-12-29 19:41:21 +0100 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-12-29 19:41:21 +0100 |
commit | da6cd59b1d30cddde0cb81d9142728b3a51670bd (patch) | |
tree | cb185d2a529b0ff1f8ba97110a0fbbc89fe08f47 /channels.c | |
parent | 20001230 (diff) | |
download | openssh-da6cd59b1d30cddde0cb81d9142728b3a51670bd.tar.xz openssh-da6cd59b1d30cddde0cb81d9142728b3a51670bd.zip |
whitespace sync with openbsd
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/channels.c b/channels.c index 6879d167d..11cdf1bb7 100644 --- a/channels.c +++ b/channels.c @@ -1934,7 +1934,6 @@ x11_create_display_inet(int screen_number, int x11_display_offset) } /* Set up a suitable value for the DISPLAY variable. */ - if (gethostname(hostname, sizeof(hostname)) < 0) fatal("gethostname: %.100s", strerror(errno)); @@ -1969,12 +1968,12 @@ x11_create_display_inet(int screen_number, int x11_display_offset) /* Set DISPLAY to <ip address>:screen.display */ snprintf(display, sizeof(display), "%.50s:%d.%d", inet_ntoa(my_addr), - display_number, screen_number); + display_number, screen_number); } #else /* IPADDR_IN_DISPLAY */ /* Just set DISPLAY to hostname:screen.display */ snprintf(display, sizeof display, "%.400s:%d.%d", hostname, - display_number, screen_number); + display_number, screen_number); #endif /* IPADDR_IN_DISPLAY */ /* Allocate a channel for each socket. */ |