summaryrefslogtreecommitdiff
path: root/tools/javadeps.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-09-20 21:26:16 +0000
committerjbj <devnull@localhost>2002-09-20 21:26:16 +0000
commit9e6dc0e00ec028a14812ba36fc781fb6e121bb3b (patch)
treefea72d7f21ddd6a94438aa054bc7aa791358753e /tools/javadeps.c
parent56b4e83a2ee1ab40c7f92cfa4d962fcede4ef785 (diff)
downloadrpm-9e6dc0e00ec028a14812ba36fc781fb6e121bb3b.tar.gz
- eliminate myftw, use Fts(3) instead.
CVS patchset: 5730 CVS date: 2002/09/20 21:26:16
Diffstat (limited to 'tools/javadeps.c')
-rw-r--r--tools/javadeps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/javadeps.c b/tools/javadeps.c
index 8ecd177b3..f7a87947b 100644
--- a/tools/javadeps.c
+++ b/tools/javadeps.c
@@ -257,7 +257,7 @@ usage (void)
"assumed to be zero. \n\n"
"");
printf("EXAMPLES (Java Keywords): \n\n"
- "\t public static final String REVISION = \"$Revision: 2.11 $\";\n"
+ "\t public static final String REVISION = \"$Revision: 2.12 $\";\n"
"\t public static final String EPOCH = \"4\";\n"
"\t public static final String REQUIRES = \"RPM_Requires: "
"java(gnu.regexp.RE) java(com.ibm.site.util.Options)>=1.5\";\n"
@@ -316,8 +316,6 @@ void die(char *format, ...) {
is hard since we only know that name when we are done parsing
the file, and most errors will occur before that.*/
- va_start(ap, format);
-
if ( (!FILE_NAME) ) {
sprintf (newformat, "\n%s: %s",
@@ -333,7 +331,9 @@ void die(char *format, ...) {
PROGRAM_NAME, FILE_NAME, CLASS_NAME, format);
}
+ va_start(ap, format);
vsprintf (newmsg, newformat, ap);
+ va_end(ap);
/* print error to where it needs to go:
stdout, stderr, or syslog