Fix trivial bugs in edit-sgml.c
This commit is contained in:
parent
de1faa42d1
commit
811995b79d
|
@ -263,6 +263,7 @@ Getc (FILE *f, int *linep)
|
||||||
int c = getc (f);
|
int c = getc (f);
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
++(*linep);
|
++(*linep);
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -524,7 +525,7 @@ main (int argc, char **argv)
|
||||||
int iline, oline;
|
int iline, oline;
|
||||||
|
|
||||||
if (!argv[1])
|
if (!argv[1])
|
||||||
Bail ("usage: %s <template.sgml>", 0, argv[0]);
|
Bail ("usage: %*s <template.sgml>", 0, argv[0]);
|
||||||
f = fopen (argv[1], "r");
|
f = fopen (argv[1], "r");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue