Browse Source

fix gcc warning: ex3.c:31: warning: int format, different type arg (arg 2)

Mike Frysinger 18 years ago
parent
commit
195e68a014
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/pthread/ex3.c

+ 1 - 1
test/pthread/ex3.c

@@ -28,7 +28,7 @@ int main(int argc, char ** argv)
 
   /* create a number to search for */
   pid = getpid();
-  printf("Searching for the number = %d...\n", pid);
+  printf("Searching for the number = %ld...\n", pid);
 
   /* Initialize the mutex lock */
   pthread_mutex_init(&lock, NULL);