]> git.sur5r.net Git - i3/i3status/blobdiff - src/general.c
Use kill(pid, 0) to check if the process is alive
[i3/i3status] / src / general.c
index a093c160d73eb874645f5a1702eda143f6859cea..2ae90f135ed2dad3f6ff788e2905af0b345aa3f1 100644 (file)
@@ -13,7 +13,7 @@
  * Reads size bytes into the destination buffer from filename.
  *
  */
-bool slurp(char *filename, char *destination, int size) {
+bool slurp(const char *filename, char *destination, int size) {
         int fd;
 
         if ((fd = open(filename, O_RDONLY)) == -1)