summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src/support/logresolve.c
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2012-03-04 04:05:15 +0000
committerfgsch <fgsch@openbsd.org>2012-03-04 04:05:15 +0000
commitf9bbbf4534171e957bb7652e706dd78782fbffa2 (patch)
tree3828b3cf6a92fdae28d55bf6c8000c490e4996d0 /usr.sbin/httpd/src/support/logresolve.c
parentDocument sem_timedwait() (diff)
downloadwireguard-openbsd-f9bbbf4534171e957bb7652e706dd78782fbffa2.tar.xz
wireguard-openbsd-f9bbbf4534171e957bb7652e706dd78782fbffa2.zip
In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
Diffstat (limited to 'usr.sbin/httpd/src/support/logresolve.c')
-rw-r--r--usr.sbin/httpd/src/support/logresolve.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/httpd/src/support/logresolve.c b/usr.sbin/httpd/src/support/logresolve.c
index e990061c4aa..09da8474dae 100644
--- a/usr.sbin/httpd/src/support/logresolve.c
+++ b/usr.sbin/httpd/src/support/logresolve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logresolve.c,v 1.15 2009/06/21 00:38:22 martynas Exp $ */
+/* $OpenBSD: logresolve.c,v 1.16 2012/03/04 04:05:15 fgsch Exp $ */
/*
* logresolve 1.1
@@ -49,7 +49,7 @@
#include <arpa/inet.h>
static void cgethost(struct sockaddr *sa, char *string, int check);
-static int getline(char *s, int n);
+static int get_line(char *s, int n);
static void stats(FILE *output);
static void usage(void);
@@ -258,7 +258,7 @@ stats(FILE *output)
/*gets a line from stdin */
static int
-getline(char *s, int n)
+get_line(char *s, int n)
{
if (!fgets(s, n, stdin))
return (0);
@@ -308,7 +308,7 @@ int main
for (i = 0; i < MAX_ERR + 2; i++)
errors[i] = 0;
- while (getline(line, MAXLINE)) {
+ while (get_line(line, MAXLINE)) {
if (line[0] == '\0')
continue;
entries++;