From 47c81725b2060644f6c9cf51f2d5683e69d9750a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 May 2019 14:50:16 +0200 Subject: Remove redundant casts --- src/serdi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/serdi.c b/src/serdi.c index d408fa7b..95944518 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -157,17 +157,17 @@ main(int argc, char** argv) if (++a == argc) { return missing_arg(argv[0], 'p'); } - add_prefix = (const char*)argv[a]; + add_prefix = argv[a]; } else if (argv[a][1] == 'c') { if (++a == argc) { return missing_arg(argv[0], 'c'); } - chop_prefix = (const char*)argv[a]; + chop_prefix = argv[a]; } else if (argv[a][1] == 'r') { if (++a == argc) { return missing_arg(argv[0], 'r'); } - root_uri = (const char*)argv[a]; + root_uri = argv[a]; } else { SERDI_ERRORF("invalid option -- '%s'\n", argv[a] + 1); return print_usage(argv[0], true); @@ -184,7 +184,7 @@ main(int argc, char** argv) _setmode(_fileno(stdout), _O_BINARY); #endif - const char* input = (const char*)argv[a++]; + const char* input = argv[a++]; if (!input_syntax && !(input_syntax = serd_guess_syntax(input))) { input_syntax = SERD_TRIG; @@ -197,7 +197,7 @@ main(int argc, char** argv) SerdNode* base = NULL; if (a < argc) { // Base URI given on command line - base = serd_new_uri((const char*)argv[a]); + base = serd_new_uri(argv[a]); } else if (!from_string && !from_stdin) { // Use input file URI base = serd_new_file_uri(input, NULL); } -- cgit v1.2.1