From 28af9e7e613b034cce23c905554a5222d1a28859 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 10 Mar 2008 09:26:20 +0100 Subject: [PATCH] Replace perror() with warn() --- awesome.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index e631a2d6f..be64bd9a8 100644 --- a/awesome.c +++ b/awesome.c @@ -349,12 +349,12 @@ main(int argc, char *argv[]) if(errno == EADDRINUSE) { if(unlink(addr->sun_path)) - perror("error unlinking existing file"); + warn("error unlinking existing file: %s\n", strerror(errno)); if(bind(csfd, (const struct sockaddr *) addr, SUN_LEN(addr))) - perror("error binding UNIX domain socket"); + warn("error binding UNIX domain socket: %s\n", strerror(errno)); } else - perror("error binding UNIX domain socket"); + warn("error binding UNIX domain socket: %s\n", strerror(errno)); } /* register function for signals */