diff options
Diffstat (limited to 'contrib/groff/src/utils/lkbib')
-rw-r--r-- | contrib/groff/src/utils/lkbib/lkbib.cc | 7 | ||||
-rw-r--r-- | contrib/groff/src/utils/lkbib/lkbib.man | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/contrib/groff/src/utils/lkbib/lkbib.cc b/contrib/groff/src/utils/lkbib/lkbib.cc index 4d3cadc..50e4e9b 100644 --- a/contrib/groff/src/utils/lkbib/lkbib.cc +++ b/contrib/groff/src/utils/lkbib/lkbib.cc @@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License along with groff; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdlib.h> #include <stdio.h> +#include <stdlib.h> #include <errno.h> #include <string.h> #include <assert.h> @@ -32,6 +32,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "refid.h" #include "search.h" +extern "C" const char *Version_string; + static void usage(FILE *stream) { fprintf(stream, "usage: %s [-nv] [-p database] [-i XYZ] [-t N] keys ...\n", @@ -78,7 +80,6 @@ int main(int argc, char **argv) } case 'v': { - extern const char *Version_string; printf("GNU lkbib (groff) version %s\n", Version_string); exit(0); break; @@ -126,7 +127,7 @@ int main(int argc, char **argv) int len; int count; for (count = 0; iter.next(&start, &len); count++) { - if (fwrite(start, 1, len, stdout) != len) + if (fwrite(start, 1, len, stdout) != (size_t)len) fatal("write error on stdout: %1", strerror(errno)); // Can happen for last reference in file. if (start[len - 1] != '\n') diff --git a/contrib/groff/src/utils/lkbib/lkbib.man b/contrib/groff/src/utils/lkbib/lkbib.man index 872313d..81067d1 100644 --- a/contrib/groff/src/utils/lkbib/lkbib.man +++ b/contrib/groff/src/utils/lkbib/lkbib.man @@ -1,5 +1,5 @@ -.ig \"-*- nroff -*- -Copyright (C) 1989-2000 Free Software Foundation, Inc. +.ig +Copyright (C) 1989-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 @@ -108,3 +108,7 @@ Index files. .BR @g@refer (@MAN1EXT@), .BR @g@lookbib (@MAN1EXT@), .BR @g@indxbib (@MAN1EXT@) +. +.\" Local Variables: +.\" mode: nroff +.\" End: |