summaryrefslogtreecommitdiffstats
path: root/src/sordi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 00:01:07 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 00:01:07 +0000
commita4be30c59cd6452ab595d221bc4e97bab00517a7 (patch)
tree1bd6d196e8236dca2dfa993dbc356869d718025b /src/sordi.c
parentfcaa07ca53ae5a4e586117fa72bd92de903affef (diff)
downloadsord-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.c10
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