diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 19:33:13 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 19:33:13 +0100 |
commit | 4467372a2e39bb72648eebbb96934147681110c2 (patch) | |
tree | 7fb39d8631f4c655ef3fac1883c12dfb9c63ad14 /tests | |
parent | cb73763da5d004b3f780f4395ccf19a398da60a2 (diff) | |
download | libsigrokdecode-4467372a2e39bb72648eebbb96934147681110c2.tar.gz libsigrokdecode-4467372a2e39bb72648eebbb96934147681110c2.zip |
Fix warnings exposed by -Wmissing-prototypes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runtc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/runtc.c b/tests/runtc.c index b891b3b..ab1f5e9 100644 --- a/tests/runtc.c +++ b/tests/runtc.c @@ -65,7 +65,7 @@ struct output { }; -void logmsg(char *prefix, FILE *out, const char *format, va_list args) +static void logmsg(char *prefix, FILE *out, const char *format, va_list args) { if (prefix) fprintf(out, "%s", prefix); @@ -73,7 +73,7 @@ void logmsg(char *prefix, FILE *out, const char *format, va_list args) fprintf(out, "\n"); } -void DBG(const char *format, ...) +static void DBG(const char *format, ...) { va_list args; @@ -84,7 +84,7 @@ void DBG(const char *format, ...) va_end(args); } -void ERR(const char *format, ...) +static void ERR(const char *format, ...) { va_list args; @@ -93,7 +93,7 @@ void ERR(const char *format, ...) va_end(args); } -int sr_log(void *cb_data, int loglevel, const char *format, va_list args) +static int sr_log(void *cb_data, int loglevel, const char *format, va_list args) { (void)cb_data; @@ -105,7 +105,7 @@ int sr_log(void *cb_data, int loglevel, const char *format, va_list args) return SRD_OK; } -int srd_log(void *cb_data, int loglevel, const char *format, va_list args) +static int srd_log(void *cb_data, int loglevel, const char *format, va_list args) { (void)cb_data; @@ -117,7 +117,7 @@ int srd_log(void *cb_data, int loglevel, const char *format, va_list args) return SRD_OK; } -void usage(char *msg) +static void usage(char *msg) { if (msg) fprintf(stderr, "%s\n", msg); @@ -137,7 +137,7 @@ void usage(char *msg) /* This is a neutered version of libsigrokdecode's py_str_as_str(). It * does no error checking, but then the only strings it processes are * generated by Python's repr(), so are known good. */ -char *py_str_as_str(const PyObject *py_str) +static char *py_str_as_str(const PyObject *py_str) { PyObject *py_encstr; char *str, *outstr; |