diff options
author | Matt Kraai <kraai@debian.org> | 2001-01-31 19:00:21 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-01-31 19:00:21 +0000 |
commit | dd19c6990496023fe23fefef8f1798740f7d39c6 (patch) | |
tree | 3933adefa4171173db78fa2389146ac89f4edb86 /hostname.c | |
parent | 63ec2732454a0c973305794e185e488106f6b282 (diff) | |
download | busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.gz busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.bz2 busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.zip |
Removed trailing \n from error_msg{,_and_die} messages.
Diffstat (limited to 'hostname.c')
-rw-r--r-- | hostname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hostname.c b/hostname.c index a789fa0f1..3dba64154 100644 --- a/hostname.c +++ b/hostname.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: hostname.c,v 1.21 2001/01/27 08:24:37 andersen Exp $ | 3 | * $Id: hostname.c,v 1.22 2001/01/31 19:00:20 kraai Exp $ |
4 | * Mini hostname implementation for busybox | 4 | * Mini hostname implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -41,7 +41,7 @@ void do_sethostname(char *s, int isfile) | |||
41 | if (!isfile) { | 41 | if (!isfile) { |
42 | if (sethostname(s, strlen(s)) < 0) { | 42 | if (sethostname(s, strlen(s)) < 0) { |
43 | if (errno == EPERM) | 43 | if (errno == EPERM) |
44 | error_msg_and_die("you must be root to change the hostname\n"); | 44 | error_msg_and_die("you must be root to change the hostname"); |
45 | else | 45 | else |
46 | perror_msg_and_die("sethostname"); | 46 | perror_msg_and_die("sethostname"); |
47 | } | 47 | } |