From 3a87163b2480eaf47d626580d20049387d942066 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 23 Mar 2009 13:52:52 +0000 Subject: [PATCH] * Shut up a GCC warning. --- src/nix-worker/nix-worker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index f0f821bdd..54ac2a55e 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -112,11 +112,11 @@ static void sigPollHandler(int sigNo) _isInterrupted = 1; blockInt = 1; canSendStderr = false; - char * s = "SIGPOLL\n"; + const char * s = "SIGPOLL\n"; write(STDERR_FILENO, s, strlen(s)); } } else { - char * s = "spurious SIGPOLL\n"; + const char * s = "spurious SIGPOLL\n"; write(STDERR_FILENO, s, strlen(s)); } }