diff options
author | des <des@FreeBSD.org> | 2008-09-01 16:12:27 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-09-01 16:12:27 +0000 |
commit | 9cb7b30c957d27355548472fa5bd4db282bbc29f (patch) | |
tree | 12313cc8987914fbf64671f9366223ea7452d513 /aux.c | |
parent | 8f6f5baf400f08937451cf9c8ecc220e9efd2f63 (diff) | |
download | FreeBSD-src-9cb7b30c957d27355548472fa5bd4db282bbc29f.zip FreeBSD-src-9cb7b30c957d27355548472fa5bd4db282bbc29f.tar.gz |
When I flattened the dist tree, some files that had been removed in prior
vendor imports were inadvertantly resurrected. Re-remove them.
Diffstat (limited to 'aux.c')
-rw-r--r-- | aux.c | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -1,36 +0,0 @@ -#include "includes.h" -RCSID("$OpenBSD: aux.c,v 1.2 2000/05/17 09:47:59 markus Exp $"); - -#include "ssh.h" - -char * -chop(char *s) -{ - char *t = s; - while (*t) { - if(*t == '\n' || *t == '\r') { - *t = '\0'; - return s; - } - t++; - } - return s; - -} - -void -set_nonblock(int fd) -{ - int val; - val = fcntl(fd, F_GETFL, 0); - if (val < 0) { - error("fcntl(%d, F_GETFL, 0): %s", fd, strerror(errno)); - return; - } - if (val & O_NONBLOCK) - return; - debug("fd %d setting O_NONBLOCK", fd); - val |= O_NONBLOCK; - if (fcntl(fd, F_SETFL, val) == -1) - error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", fd, strerror(errno)); -} |