Change ints to bools around thread_info executing/resumed
[deliverable/binutils-gdb.git] / gdb / thread.c
index 302a49e9845eeca251240ac42dabb01abe8752e3..54b59e22448a260e4190ffe5438b8b5c799a1cd9 100644 (file)
@@ -823,13 +823,13 @@ set_resumed (process_stratum_target *targ, ptid_t ptid, bool resumed)
 /* Helper for set_running, that marks one thread either running or
    stopped.  */
 
-static int
-set_running_thread (struct thread_info *tp, int running)
+static bool
+set_running_thread (struct thread_info *tp, bool running)
 {
-  int started = 0;
+  bool started = false;
 
   if (running && tp->state == THREAD_STOPPED)
-    started = 1;
+    started = true;
   tp->state = running ? THREAD_RUNNING : THREAD_STOPPED;
 
   if (!running)
This page took 0.026049 seconds and 4 git commands to generate.