Module Name:    src
Committed By:   rillig
Date:           Fri Jun 10 22:42:47 UTC 2022

Modified Files:
        src/usr.bin/make: parse.c

Log Message:
make: rename loadfile to LoadFile

It was the only function in parse.c that had a lowercase name.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.674 -r1.675 src/usr.bin/make/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/parse.c
diff -u src/usr.bin/make/parse.c:1.674 src/usr.bin/make/parse.c:1.675
--- src/usr.bin/make/parse.c:1.674	Fri Jun 10 22:35:05 2022
+++ src/usr.bin/make/parse.c	Fri Jun 10 22:42:47 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: parse.c,v 1.674 2022/06/10 22:35:05 rillig Exp $	*/
+/*	$NetBSD: parse.c,v 1.675 2022/06/10 22:42:47 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
 #include "pathnames.h"
 
 /*	"@(#)parse.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: parse.c,v 1.674 2022/06/10 22:35:05 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.675 2022/06/10 22:42:47 rillig Exp $");
 
 /*
  * A file being read.
@@ -310,7 +310,7 @@ CurFile(void)
 }
 
 static Buffer
-loadfile(const char *path, int fd)
+LoadFile(const char *path, int fd)
 {
 	ssize_t n;
 	Buffer buf;
@@ -1207,7 +1207,7 @@ IncludeFile(const char *file, bool isSys
 		return;
 	}
 
-	buf = loadfile(fullname, fd);
+	buf = LoadFile(fullname, fd);
 	(void)close(fd);
 
 	Parse_PushInput(fullname, 1, 0, buf, NULL);
@@ -2864,7 +2864,7 @@ Parse_File(const char *name, int fd)
 	char *line;
 	Buffer buf;
 
-	buf = loadfile(name, fd != -1 ? fd : STDIN_FILENO);
+	buf = LoadFile(name, fd != -1 ? fd : STDIN_FILENO);
 	if (fd != -1)
 		(void)close(fd);
 

Reply via email to