diff options
author | Dave Beckett <dave@dajobe.org> | 2003-04-15 19:46:16 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2003-04-15 19:46:16 +0000 |
commit | 00658bcbac78affa3b024bd4cc2c68801b77d782 (patch) | |
tree | 749c652971d966d601c183e10fc098211b077aa5 | |
parent | bc753c315cdb5e3b9800d10b68a6c99f1db513b6 (diff) | |
download | raptor-00658bcbac78affa3b024bd4cc2c68801b77d782.tar.gz |
(print_statements): Print the program name not "rdfdump" hardcoded.
-rw-r--r-- | utils/rapper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/rapper.c b/utils/rapper.c index 45216f81..e66745fa 100644 --- a/utils/rapper.c +++ b/utils/rapper.c @@ -62,6 +62,8 @@ static void print_statements(void *user_data, const raptor_statement *statement) int main(int argc, char *argv[]); +static char *program=NULL; + /* replace newlines in literal string output with spaces */ static int replace_newlines=0; @@ -83,7 +85,7 @@ void print_statements(void *user_data, const raptor_statement *statement) return; if(output_format == OUTPUT_FORMAT_SIMPLE) - fputs("rdfdump: Statement: ", stdout); + fprintf(stdout, "%s: Statement: ", program); /* replace newlines with spaces if object is a literal string */ if(replace_newlines && @@ -130,7 +132,6 @@ static struct option long_options[] = #endif -static char *program=NULL; static int error_count=0; static int warning_count=0; |