summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff3.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.bin/cvs/diff3.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.bin/cvs/diff3.c')
-rw-r--r--usr.bin/cvs/diff3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/diff3.c b/usr.bin/cvs/diff3.c
index 4b8563a31ed..df5eae89d8b 100644
--- a/usr.bin/cvs/diff3.c
+++ b/usr.bin/cvs/diff3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff3.c,v 1.54 2010/10/29 17:49:37 nicm Exp $ */
+/* $OpenBSD: diff3.c,v 1.55 2012/03/04 04:05:15 fgsch Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -133,7 +133,7 @@ static char f1mark[MAXPATHLEN], f3mark[MAXPATHLEN]; /* markers for -E and -X */
static int duplicate(struct range *, struct range *);
static int edit(struct diff *, int, int);
static char *getchange(FILE *);
-static char *getline(FILE *, size_t *);
+static char *get_line(FILE *, size_t *);
static int number(char **);
static size_t readin(int, struct diff **);
static int skip(int, int, char *);
@@ -503,7 +503,7 @@ getchange(FILE *b)
{
char *line;
- while ((line = getline(b, NULL))) {
+ while ((line = get_line(b, NULL))) {
if (isdigit((unsigned char)line[0]))
return (line);
}
@@ -512,7 +512,7 @@ getchange(FILE *b)
}
static char *
-getline(FILE *b, size_t *n)
+get_line(FILE *b, size_t *n)
{
char *cp;
size_t len;
@@ -714,7 +714,7 @@ skip(int i, int from, char *pr)
char *line;
for (n = 0; cline[i] < from - 1; n += j) {
- if ((line = getline(fp[i], &j)) == NULL)
+ if ((line = get_line(fp[i], &j)) == NULL)
return (-1);
if (pr != NULL)
diff_output("%s%s", pr, line);