summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbhinav Prasai <abhinav.prsai@gmail.com>2025-11-22 01:32:17 +0000
committerAbhinav Prasai <abhinav.prsai@gmail.com>2025-11-22 01:32:17 +0000
commit5521b576b520d17b438cf2abbe4abb4b3aa0caa2 (patch)
tree90142c925b5f88ba3a720e18c69997f5474dd53c /src
parent6e78128ea49abdf19304a24f4c33a1884fe587f8 (diff)
fix warning, pid_t is int 99.9999% of the time
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 39a82ae..a91f072 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -770,7 +770,7 @@ pid_t get_parent_process(pid_t c)
return 0;
}
- int no_error = fscanf(f, "%*u %*s %*c %u", &v);
+ int no_error = fscanf(f, "%*u %*s %*c %d", &v);
(void)no_error;
fclose(f);
return (pid_t)v;