Commit 4ce5572b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Make it a proper prototype. Avoid problems with signed chars.

	Fixed typo: use l2g_write, not l2g_print.
parent f80bd255
......@@ -27,7 +27,7 @@ const int ARGS = 3;
p m print
*/
int
main()
main(void)
{
Local_to_global maps[MAXMAPS];
char input[LINSIZE];
......@@ -59,7 +59,7 @@ main()
for (s=input + 1; *s && *s != '\n'; ++s)
{
if (isdigit(*s))
if (isdigit((int)(unsigned char)*s))
{
if (n < ARGS)
{
......@@ -173,7 +173,7 @@ main()
case 'p':
if (n == 1 && num[0] < MAXMAPS)
{
l2g_print(&maps[num[0]], stdout);
l2g_write(&maps[num[0]], stdout);
ok = 1;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment