aboutsummaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 19:00:21 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 19:00:21 +0000
commitdaa692b64776f1e2552a198ae786d2e5f3b50620 (patch)
tree3933adefa4171173db78fa2389146ac89f4edb86 /syslogd.c
parent434f1b16e15a308f02d9fc1adc5fa1e483955fed (diff)
downloadbusybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.tar.gz
busybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.tar.bz2
busybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.zip
Removed trailing \n from error_msg{,_and_die} messages.
git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/syslogd.c b/syslogd.c
index 8eb74c69f..7bd4bdcb2 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -182,7 +182,7 @@ static const int IOV_COUNT = 2;
182 182
183 if ( -1 == writev(remotefd,iov, IOV_COUNT)){ 183 if ( -1 == writev(remotefd,iov, IOV_COUNT)){
184 error_msg_and_die("syslogd: cannot write to remote file handle on" 184 error_msg_and_die("syslogd: cannot write to remote file handle on"
185 "%s:%d\n",RemoteHost,RemotePort); 185 "%s:%d",RemoteHost,RemotePort);
186 } 186 }
187 } 187 }
188 if (local_logging == TRUE) 188 if (local_logging == TRUE)
@@ -264,13 +264,13 @@ static void init_RemoteLog (void){
264 remotefd = socket(AF_INET, SOCK_DGRAM, 0); 264 remotefd = socket(AF_INET, SOCK_DGRAM, 0);
265 265
266 if (remotefd < 0) { 266 if (remotefd < 0) {
267 error_msg_and_die("syslogd: cannot create socket\n"); 267 error_msg_and_die("syslogd: cannot create socket");
268 } 268 }
269 269
270 hostinfo = (struct hostent *) gethostbyname(RemoteHost); 270 hostinfo = (struct hostent *) gethostbyname(RemoteHost);
271 271
272 if (!hostinfo) { 272 if (!hostinfo) {
273 error_msg_and_die("syslogd: cannot resolve remote host name [%s]\n", RemoteHost); 273 error_msg_and_die("syslogd: cannot resolve remote host name [%s]", RemoteHost);
274 } 274 }
275 275
276 remoteaddr.sin_family = AF_INET; 276 remoteaddr.sin_family = AF_INET;
@@ -282,7 +282,7 @@ static void init_RemoteLog (void){
282 for future operations 282 for future operations
283 */ 283 */
284 if ( 0 != (connect(remotefd, (struct sockaddr *) &remoteaddr, len))){ 284 if ( 0 != (connect(remotefd, (struct sockaddr *) &remoteaddr, len))){
285 error_msg_and_die("syslogd: cannot connect to remote host %s:%d\n", RemoteHost, RemotePort); 285 error_msg_and_die("syslogd: cannot connect to remote host %s:%d", RemoteHost, RemotePort);
286 } 286 }
287 287
288} 288}