[PATCH 2/2] conv: Fix main() of conv_test to compile with clang.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jacob Erlbeck jerlbeck at sysmocom.de
Wed Aug 14 16:13:46 UTC 2013


Fix type of argument 'argv'.

Addresses:
conv/conv_test.c:358:5: error: second parameter of 'main' (argument
array) must
      be of type 'char **'
int main(int argc, char argv[])
---
 tests/conv/conv_test.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/conv/conv_test.c b/tests/conv/conv_test.c
index 54e043e..ab651d4 100644
--- a/tests/conv/conv_test.c
+++ b/tests/conv/conv_test.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 
 #include <osmocom/core/bits.h>
@@ -355,7 +356,7 @@ sbit_to_ubit(ubit_t *dst, sbit_t *src, int n)
 }
 
 
-int main(int argc, char argv[])
+int main(int argc, char *argv[])
 {
 	const struct conv_test_vector *tst;
 	ubit_t *bu0, *bu1;
-- 
1.7.9.5





More information about the OpenBSC mailing list