summaryrefslogtreecommitdiffstats
path: root/contrib/groff/src/devices/grolj4
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/src/devices/grolj4')
-rw-r--r--contrib/groff/src/devices/grolj4/grolj4.man8
-rw-r--r--contrib/groff/src/devices/grolj4/lj4.cc9
2 files changed, 12 insertions, 5 deletions
diff --git a/contrib/groff/src/devices/grolj4/grolj4.man b/contrib/groff/src/devices/grolj4/grolj4.man
index 891d7dc..414ad78 100644
--- a/contrib/groff/src/devices/grolj4/grolj4.man
+++ b/contrib/groff/src/devices/grolj4/grolj4.man
@@ -1,5 +1,5 @@
-.ig \"-*- nroff -*-
-Copyright (C) 1994-2000 Free Software Foundation, Inc.
+.ig
+Copyright (C) 1994-2000, 2001 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -142,3 +142,7 @@ Small dots.
.BR groff_out (@MAN5EXT@),
.BR groff_font (@MAN5EXT@),
.BR groff_char (@MAN7EXT@)
+.
+.\" Local Variables:
+.\" mode: nroff
+.\" End:
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;
OpenPOWER on IntegriCloud