diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-10 11:12:31 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-10 11:12:31 +0000 |
| commit | f03ef8405b0c54ef0febc3fc91d511282e9928f4 (patch) | |
| tree | 3ed3feeca2b3017e5923faa7d7069b419a52bfa8 /usr.sbin/inetd/builtins.c | |
| parent | a651f2bc6cb7aa4b3f343bad711cbd08c77ce2e8 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/inetd/builtins.c')
| -rw-r--r-- | usr.sbin/inetd/builtins.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index 3ccdab04362cf..d75a5e46a1dda 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -60,7 +60,7 @@ void discard_dg(int, struct servtab *); void discard_stream(int, struct servtab *); void echo_dg(int, struct servtab *); void echo_stream(int, struct servtab *); -static int getline(int, char *, int); +static int get_line(int, char *, int); void iderror(int, int, int, const char *); void ident_stream(int, struct servtab *); void initring(void); @@ -740,7 +740,7 @@ machtime_stream(int s, struct servtab *sep __unused) #define strwrite(fd, buf) (void) write(fd, buf, sizeof(buf)-1) static int /* # of characters up to \r,\n or \0 */ -getline(int fd, char *buf, int len) +get_line(int fd, char *buf, int len) { int count = 0, n; struct sigaction sa; @@ -775,7 +775,7 @@ tcpmux(int s) int len; /* Get requested service name */ - if ((len = getline(s, service, MAX_SERV_LEN)) < 0) { + if ((len = get_line(s, service, MAX_SERV_LEN)) < 0) { strwrite(s, "-Error reading service name\r\n"); return (NULL); } |
