From 55357e3c75438ce83553d1c43d47e53eb7919d74 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 8 Nov 2005 23:16:16 +0000 Subject: * deal with gethostname() failing, use utsname.sysname[] instead in that case * deal with utsname() failing when creating HINFO records git-svn-id: file:///home/lennart/svn/public/avahi/trunk@938 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'avahi-core/util.c') diff --git a/avahi-core/util.c b/avahi-core/util.c index 41229c5..a5e9f52 100644 --- a/avahi-core/util.c +++ b/avahi-core/util.c @@ -101,3 +101,13 @@ char *avahi_strup(char *s) { return s; } + +char *avahi_strdown(char *s) { + char *c; + assert(s); + + for (c = s; *c; c++) + *c = (char) tolower(*c); + + return s; +} -- cgit