Fixup osdep-* specific code

get_proc_name() is osdep_get_name() outside of OpenBSD.
This commit is contained in:
Thomas
2013-10-11 14:39:22 +01:00
parent 1a0951959f
commit f703a30dfe
3 changed files with 1 additions and 6 deletions

View File

@ -349,10 +349,6 @@ client_send_identify(int flags)
fd = open("/", O_RDONLY);
client_write_one(MSG_IDENTIFY_CWD, fd, NULL, 0);
#ifdef __CYGWIN__
snprintf(&data.ttyname, sizeof data.ttyname, "%s",
ttyname(STDIN_FILENO));
#else
if ((fd = dup(STDIN_FILENO)) == -1)
fatal("dup failed");
client_write_one(MSG_IDENTIFY_STDIN, fd, NULL, 0);