From 6f7ff847f12fed48ec5cd9e68af81ef928d6c4ea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 19 Oct 2010 05:13:42 -0400 Subject: [PATCH] Suppress compiler warning, update history, and bump version. --- Makefile | 3 +++ cstrings.l | 9 +++++++-- cstrings.spec | 7 +++++-- cstrings.xml | 3 +++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 30550bf..17e4c9f 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ cstrings: cstrings.l cstrings.1: cstrings.xml xmlto man cstrings.xml +cstrings.html: cstrings.xml + xmlto html-nochunks cstrings.xml + install: cstrings.1 uninstall cp cstrings /usr/bin cp cstrings.1 /usr/share/man/man1/cstrings.1 diff --git a/cstrings.l b/cstrings.l index 013b0f4..855f38b 100644 --- a/cstrings.l +++ b/cstrings.l @@ -276,8 +276,13 @@ char *argv[]; (void) printf("%s:\n", argv[optind]); else { - if (argv[optind][0] != '/') - (void) getcwd(buf, BUFSIZ); + if (argv[optind][0] != '/') { + if (getcwd(buf, BUFSIZ) != 0) + { + perror("cstrings, getting current directory"); + exit(1); + } + } else buf[0] = '\0'; (void) strcat(buf, argv[optind]); diff --git a/cstrings.spec b/cstrings.spec index b23c304..c226e23 100644 --- a/cstrings.spec +++ b/cstrings.spec @@ -1,5 +1,5 @@ Name: cstrings -Version: 2.3 +Version: 2.4 Release: 1 URL: http://www.catb.org/~esr/cstrings/ Source0: %{name}-%{version}.tar.gz @@ -7,7 +7,7 @@ License: GPL Group: Development/Tools Summary: quick-and-dirty C code internationalization tool BuildRoot: %{_tmppath}/%{name}-root -#Keywords: internationalization, C, programming +#Project-Tag-List: internationalization, C, programming %description A lightweight internationalization tool for C code, for those who find @@ -38,6 +38,9 @@ cp cstrings.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/ %{_mandir}/man1/cstrings.1* %changelog +* Tue Oct 19 2010 Eric S. Raymond 2.4-1 +- Banish some warnings generated by modern compilers. + * Mon Dec 29 2003 Eric S. Raymond 2.3-1 - Use mkstemp(3) rather than tempnam(3) for security's sake. - Source RPMs no longer depend on --define myversion. diff --git a/cstrings.xml b/cstrings.xml index 40bcf75..554496f 100644 --- a/cstrings.xml +++ b/cstrings.xml @@ -7,6 +7,9 @@ cstrings 1 July 10, 1990 +cstrings +cstrings +Development Tools cstrings -- 2.43.0