summaryrefslogtreecommitdiff
path: root/tests/ntpd/rc_cmdlength.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ntpd/rc_cmdlength.c')
-rw-r--r--tests/ntpd/rc_cmdlength.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/ntpd/rc_cmdlength.c b/tests/ntpd/rc_cmdlength.c
index dfe53167b677..582070cfb47d 100644
--- a/tests/ntpd/rc_cmdlength.c
+++ b/tests/ntpd/rc_cmdlength.c
@@ -11,9 +11,9 @@
#include "test-libntp.h"
-
-void
-test_EvaluateCommandLength(void){
+extern void test_EvaluateCommandLength(void);
+void test_EvaluateCommandLength(void)
+{
size_t length, commandLength;
const char *command1 = "Random Command";
const char *command2 = "Random Command\t\t\n\t";
@@ -35,5 +35,4 @@ test_EvaluateCommandLength(void){
length = strlen(command4);
commandLength = remoteconfig_cmdlength(command4, command4+length);
TEST_ASSERT_EQUAL(16, commandLength );
-
}