diff options
| author | Roy Marples <roy@marples.name> | 2008-09-02 13:28:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-02 13:28:11 +0000 |
| commit | fd05b7dcfc61e1a8f1d4f0f7ecd27bb25a6cc7a8 (patch) | |
| tree | eefcda1304078e7ee7e7508103cb6e1775ff5513 /common.c | |
| parent | ca07508a27a3048ead0c0a411f2cecc84ac97935 (diff) | |
| download | dhcpcd-fd05b7dcfc61e1a8f1d4f0f7ecd27bb25a6cc7a8.tar.xz | |
Add an event loop.
Split client.c into smaller files and functions and
recode around the event loop.
Add multiple interface support using the new event loop.
Document changes and outstanding bugs.
Diffstat (limited to 'common.c')
| -rw-r--r-- | common.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -284,7 +284,7 @@ xmalloc(size_t s) if (value) return value; - logger(LOG_ERR, "memory exhausted"); + logger(LOG_ERR, "memory exhausted (xalloc %zu bytes)", s); exit (EXIT_FAILURE); /* NOTREACHED */ } @@ -305,7 +305,7 @@ xrealloc(void *ptr, size_t s) if (value) return (value); - logger(LOG_ERR, "memory exhausted"); + logger(LOG_ERR, "memory exhausted (xrealloc %zu bytes)", s); exit(EXIT_FAILURE); /* NOTREACHED */ } @@ -321,7 +321,7 @@ xstrdup(const char *str) if ((value = strdup(str))) return value; - logger(LOG_ERR, "memory exhausted"); + logger(LOG_ERR, "memory exhausted (xstrdup)"); exit(EXIT_FAILURE); /* NOTREACHED */ } |
