about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-03-23T13·52+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-03-23T13·52+0000
commit3a87163b2480eaf47d626580d20049387d942066 (patch)
treea31d78504771dd96ccae1da2526c22bc208dfec9
parentcacff1be886ed975bbef1b17151b25c633711256 (diff)
* Shut up a GCC warning.
-rw-r--r--src/nix-worker/nix-worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index f0f821bdd7..54ac2a55e3 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));
         }
     }