summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2010-10-31 22:01:20 +0000
committerroot <root>2010-10-31 22:01:20 +0000
commitf919436660710d0e27f25264a12b301c60e66065 (patch)
treeac1ab20650eed79177a6e6542ecbe1909b126014 /ev.c
parent942659ceb3ffc40845b9e6d4b886c6f09f76206b (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ev.c b/ev.c
index d62dd2b..512e15d 100644
--- a/ev.c
+++ b/ev.c
@@ -593,11 +593,9 @@ ev_syserr (const char *msg)
else
{
#if EV_AVOID_STDIO
- const char *err = strerror (errno);
-
ev_printerr (msg);
ev_printerr (": ");
- ev_printerr (err);
+ ev_printerr (strerror (errno));
ev_printerr ("\n");
#else
perror (msg);
@@ -641,9 +639,9 @@ ev_realloc (void *ptr, long size)
if (!ptr && size)
{
#if EV_AVOID_STDIO
- ev_printerr ("libev: memory allocation failed, aborting.\n");
+ ev_printerr ("(libev) memory allocation failed, aborting.\n");
#else
- fprintf (stderr, "libev: cannot allocate %ld bytes, aborting.", size);
+ fprintf (stderr, "(libev) cannot allocate %ld bytes, aborting.", size);
#endif
abort ();
}