diff options
author | David Robillard <d@drobilla.net> | 2019-05-04 14:50:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | 47c81725b2060644f6c9cf51f2d5683e69d9750a (patch) | |
tree | 8f1dd8a08b960f12bc5d850558b8271c39c9fe61 /src | |
parent | fb2a6a064cd1d0861358ff05ea6ddc6d96a7e0d8 (diff) | |
download | serd-47c81725b2060644f6c9cf51f2d5683e69d9750a.tar.gz serd-47c81725b2060644f6c9cf51f2d5683e69d9750a.tar.bz2 serd-47c81725b2060644f6c9cf51f2d5683e69d9750a.zip |
Remove redundant casts
Diffstat (limited to 'src')
-rw-r--r-- | src/serdi.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |