diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-08-11 19:30:19 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-08-11 19:30:19 +0000 |
commit | 1d04f36afcc6035e2373a39aa2c41f4e29afb748 (patch) | |
tree | 90c8cee15286d99aff4bdd2ccfb33f0bc84051fe /avahi-client/client.c | |
parent | 803e90e6c116eda5c66828a4734ea50eedff382c (diff) |
It is a bad idea to name your own variables "errno". On some system the libc defines this as a macro, so you get into strange difficulties. I renamed those variables to "error" wherever this applies.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@294 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client/client.c')
-rw-r--r-- | avahi-client/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avahi-client/client.c b/avahi-client/client.c index 46b7b37..49ace50 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -41,13 +41,13 @@ #include "internal.h" int -avahi_client_set_errno (AvahiClient *client, int errno) +avahi_client_set_errno (AvahiClient *client, int error) { - if (client == NULL) return errno; + if (client == NULL) return error; - client->errno = errno; + client->error = error; - return errno; + return error; } static |