ref: d22b568d6c15d77251d18cfd5e4700e4750ca2f5
parent: aa15080e54338ea5afa08138de85961107c739b6
author: Paul Brossier <piem@piem.org>
date: Wed Nov 28 19:24:40 EST 2018
[tests] use constant for array size, include string.h
--- a/tests/utils_tests.h
+++ b/tests/utils_tests.h
@@ -5,6 +5,10 @@
#include <assert.h>
#include "config.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h> // unlink, close
#endif
@@ -110,7 +114,8 @@
int run_on_default_sink( int main(int, char**) )
{
- int argc = 2, err;
+ const int argc = 2;
+ int err = 0;
char* argv[argc];
char sink_path[PATH_MAX] = "tmp_aubio_XXXXXX";
int fd = create_temp_sink(sink_path);