about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2014-09-12 14:41:59 -0700
committerDaniel Dunbar <daniel@zuster.org>2014-09-12 17:39:18 -0700
commitf9ffeb3e1da75178d7b49cf498b73ef14f7957a6 (patch)
treed3d7e2245cb084725891a5eb33fb77ecd1a60caf /test
parentf3c050b2f9a084b57e5a95ac6ed62b1914f5bf9f (diff)
downloadklee-f9ffeb3e1da75178d7b49cf498b73ef14f7957a6.tar.gz
Update testingUtils to use printf(), putchar() isn't a known external function anymore.
Diffstat (limited to 'test')
-rw-r--r--test/Concrete/_testingUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Concrete/_testingUtils.c b/test/Concrete/_testingUtils.c
index 02d0529e..3afbc2fa 100644
--- a/test/Concrete/_testingUtils.c
+++ b/test/Concrete/_testingUtils.c
@@ -1,4 +1,4 @@
-int putchar(int x);
+int printf(const char *fmt, ...);
 
 void print_int(unsigned long long val);
 
@@ -22,11 +22,11 @@ void print_int(unsigned long long val) {
     while (cur) {
         int digit = val / cur;
 
-        putchar(digit + '0');
+        printf("%c", digit + '0');
         
         val = val % cur;
         cur /= 10;
     }
     
-    putchar('\n');
+    printf("%c", '\n');
 }