diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 00:01:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 00:01:07 +0000 |
commit | a4be30c59cd6452ab595d221bc4e97bab00517a7 (patch) | |
tree | 1bd6d196e8236dca2dfa993dbc356869d718025b /src/sordi.c | |
parent | fcaa07ca53ae5a4e586117fa72bd92de903affef (diff) | |
download | sord-a4be30c59cd6452ab595d221bc4e97bab00517a7.tar.gz sord-a4be30c59cd6452ab595d221bc4e97bab00517a7.tar.bz2 sord-a4be30c59cd6452ab595d221bc4e97bab00517a7.zip |
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sordi.c')
-rw-r--r-- | src/sordi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sordi.c b/src/sordi.c index 9e4ed3a..a609194 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -36,8 +36,8 @@ typedef struct { SordModel* sord; } State; -int -print_version() +static int +print_version(void) { printf("sordi " SORD_VERSION " <http://drobilla.net/software/sord>\n"); printf("Copyright 2011-2012 David Robillard <http://drobilla.net>.\n" @@ -47,7 +47,7 @@ print_version() return 0; } -int +static int print_usage(const char* name, bool error) { FILE* const os = error ? stderr : stdout; @@ -62,7 +62,7 @@ print_usage(const char* name, bool error) return error ? 1 : 0; } -bool +static bool set_syntax(SerdSyntax* syntax, const char* name) { if (!strcmp(name, "turtle")) { @@ -76,7 +76,7 @@ set_syntax(SerdSyntax* syntax, const char* name) return true; } -uint8_t* +static uint8_t* absolute_path(const uint8_t* path) { #ifdef _WIN32 |