about summary refs log tree commit diff
path: root/cli/stop.c
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-01-12 22:14:10 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-01-12 23:43:35 +0100
commitc8285d9b313ea4ffa78262b5c278e1643befa298 (patch)
tree49e08445aa7d3bf27960c131c9cddc3db5b40c61 /cli/stop.c
parent7b8644dcc1a0db95c3ea321ebb8bc059ab931b42 (diff)
downloadbtpd-c8285d9b313ea4ffa78262b5c278e1643befa298.tar.gz
btpd-c8285d9b313ea4ffa78262b5c278e1643befa298.zip
Don't use the bsd err and warn family of functions. Solaris doesn't have them.
Diffstat (limited to 'cli/stop.c')
-rw-r--r--cli/stop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/stop.c b/cli/stop.c
index 218d7d6..031b00e 100644
--- a/cli/stop.c
+++ b/cli/stop.c
@@ -51,7 +51,7 @@ cmd_stop(int argc, char **argv)
     if (all) {
         enum ipc_err code = btpd_stop_all(ipc);
         if (code != IPC_OK)
-            errx(1, "%s", ipc_strerror(code));
+            diemsg("command failed (%s).\n", ipc_strerror(code));
     } else {
         for (int i = 0; i < argc; i++)
             if (torrent_spec(argv[i], &t))