diff blobstat/grokmap.c @ 294:ff2a6433687f

blobstat: code finished, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 21 Sep 2019 21:17:29 +0000
parents 23e5b940cb8b
children 99f72069d867
line wrap: on
line diff
--- a/blobstat/grokmap.c	Sat Sep 21 21:07:45 2019 +0000
+++ b/blobstat/grokmap.c	Sat Sep 21 21:17:29 2019 +0000
@@ -29,7 +29,7 @@
 }
 
 static void
-getline()
+get_line()
 {
 	char *cp;
 
@@ -133,7 +133,7 @@
 	char libname[1024], *member;
 	struct category *cat;
 
-	getline();
+	get_line();
 	if (!linebuf[0])
 		return(1);
 	if (!valid_section_name_char(linebuf[0], 1)) {
@@ -153,7 +153,7 @@
 	if (!c) {
 		if (i < 8)
 			goto inv_outsec_line;
-		getline();
+		get_line();
 		for (i = 0; i < 8; i++)
 			if (linebuf[i] != ' ')
 				goto inv_outsec_line;
@@ -185,7 +185,7 @@
 	/* input section lines */
 	libname[0] = '\0';
 	for (;;) {
-		getline();
+		get_line();
 		if (!linebuf[0])
 			break;
 		if (!parse_input_section_line(libname, &member))
@@ -217,10 +217,10 @@
 		exit(1);
 	}
 	do
-		getline();
+		get_line();
 	while (strcmp(linebuf, "SECTION ALLOCATION MAP"));
 	/* 4 fixed info lines */
-	getline();
+	get_line();
 	if (linebuf[0]) {
 bad_sectionmap_hdr:
 		fprintf(stderr,
@@ -228,15 +228,15 @@
 			filename_for_errs, lineno);
 		exit(1);
 	}
-	getline();
+	get_line();
 	if (strcmp(linebuf,
 		" output                                  attributes/"))
 		goto bad_sectionmap_hdr;
-	getline();
+	get_line();
 	if (strcmp(linebuf,
 		"section   page    origin      length       input sections"))
 		goto bad_sectionmap_hdr;
-	getline();
+	get_line();
 	if (strcmp(linebuf,
 		"--------  ----  ----------  ----------   ----------------"))
 		goto bad_sectionmap_hdr;