summary refs log tree commit diff
path: root/src/nix-worker
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09 18:27:45 +0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09 18:27:45 +0100
commitd5a5a83ad4fb8aba3b334039f567267a0463ee5a (patch)
treea6ce83d3c595fa987afed1c4dbbe18e82cc18322 /src/nix-worker
parentec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff)
downloadguix-d5a5a83ad4fb8aba3b334039f567267a0463ee5a.tar.gz
Use data() instead of c_str() where appropriate
Diffstat (limited to 'src/nix-worker')
-rw-r--r--src/nix-worker/nix-worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index f28905a24b..eaa6866673 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -135,7 +135,7 @@ static void sigPollHandler(int sigNo)
     catch (Error & e) {
         /* Shouldn't happen. */
         string s = "impossible: " + e.msg() + '\n';
-        write(STDERR_FILENO, s.c_str(), s.size());
+        write(STDERR_FILENO, s.data(), s.size());
         throw;
     }
 }