summaryrefslogtreecommitdiff
path: root/src/general.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-11-28 16:45:34 +0100
committerMichael Stapelberg <michael@stapelberg.de>2010-11-28 16:45:34 +0100
commitcf091024335052e4774d44179e80e1948da8610f (patch)
tree3d02b32bdc1de833f8f201256e7945b0ae347e86 /src/general.c
parent75670ba64a43f3382e5163b6ea7bf27de28d929b (diff)
Use kill(pid, 0) to check if the process is alive
Diffstat (limited to 'src/general.c')
-rw-r--r--src/general.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/general.c b/src/general.c
index a093c16..2ae90f1 100644
--- a/src/general.c
+++ b/src/general.c
@@ -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)