diff options
Diffstat (limited to 'contrib/groff/src/devices/grolj4/lj4.cc')
-rw-r--r-- | contrib/groff/src/devices/grolj4/lj4.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/groff/src/devices/grolj4/lj4.cc b/contrib/groff/src/devices/grolj4/lj4.cc index 9fbc6af..6829acb 100644 --- a/contrib/groff/src/devices/grolj4/lj4.cc +++ b/contrib/groff/src/devices/grolj4/lj4.cc @@ -35,6 +35,8 @@ X command to include bitmap graphics #include "driver.h" #include "nonposix.h" +extern "C" const char *Version_string; + static struct { const char *name; int code; @@ -123,7 +125,8 @@ void lj4_font::handle_unknown_font_command(const char *command, const char *arg, const char *filename, int lineno) { - for (int i = 0; i < sizeof(command_table)/sizeof(command_table[0]); i++) { + for (unsigned int i = 0; + i < sizeof(command_table)/sizeof(command_table[0]); i++) { if (strcmp(command, command_table[i].s) == 0) { if (arg == 0) fatal_with_file_and_line(filename, lineno, @@ -568,7 +571,8 @@ printer *make_printer() static int lookup_paper_size(const char *s) { - for (int i = 0; i < sizeof(paper_table)/sizeof(paper_table[0]); i++) { + for (unsigned int i = 0; + i < sizeof(paper_table)/sizeof(paper_table[0]); i++) { // FIXME Perhaps allow unique prefix. if (strcasecmp(s, paper_table[i].name) == 0) return i; @@ -645,7 +649,6 @@ int main(int argc, char **argv) } case 'v': { - extern const char *Version_string; printf("GNU grolj4 (groff) version %s\n", Version_string); exit(0); break; |