summaryrefslogtreecommitdiff
path: root/src/test/test_spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_spinlock.c')
-rw-r--r--src/test/test_spinlock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_spinlock.c b/src/test/test_spinlock.c
index 1b31e9b46..19ae9aee7 100644
--- a/src/test/test_spinlock.c
+++ b/src/test/test_spinlock.c
@@ -20,7 +20,7 @@
static SPIN_LOCK lock;
-static int val = 0;
+static unsigned int val = 0;
static volatile int32 done_threads = 0;
static void *worker(void *p){
@@ -72,10 +72,10 @@ int do_init(int argc, char **argv){
FinalizeSpinLock(&lock);
// Everything fine?
- if(val != (THRC*PERINC) ){
- printf("FAILED! (Result: %u, Expected: %u)\n", val, (THRC*PERINC) );
- }else{
- printf("OK! (Result: %u, Expected: %u)\n", val, (THRC*PERINC) );
+ if (val != (THRC*PERINC)) {
+ printf("FAILED! (Result: %u, Expected: %u)\n", val, (THRC*PERINC));
+ } else {
+ printf("OK! (Result: %u, Expected: %u)\n", val, (THRC*PERINC));
ok++;
}