X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=src%2Futil.c;h=c3bb77a949b70ff38c119a60be793becd61537b7;hp=8f4c43587f56a383cebc21c1b98a1ef1ed3400df;hb=2c550daf4ac6a6aab7f21047c037b4dd53c57fa6;hpb=37d19f15523b6fe4d1fef2329abe421221b3d4b3 diff --git a/src/util.c b/src/util.c index 8f4c435..c3bb77a 100644 --- a/src/util.c +++ b/src/util.c @@ -1,18 +1,18 @@ /*** - This file is part of avahi. + This file is part of catta. - avahi is free software; you can redistribute it and/or modify it + catta is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - avahi is distributed in the hope that it will be useful, but WITHOUT + catta is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with avahi; if not, write to the Free Software + License along with catta; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ @@ -27,10 +27,10 @@ #include #include -#include +#include #include "util.h" -void avahi_hexdump(const void* p, size_t size) { +void catta_hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); @@ -64,7 +64,7 @@ void avahi_hexdump(const void* p, size_t size) { } } -char *avahi_format_mac_address(char *r, size_t l, const uint8_t* mac, size_t size) { +char *catta_format_mac_address(char *r, size_t l, const uint8_t* mac, size_t size) { char *t = r; unsigned i; static const char hex[] = "0123456789abcdef"; @@ -99,7 +99,7 @@ char *avahi_format_mac_address(char *r, size_t l, const uint8_t* mac, size_t siz return r; } -char *avahi_strup(char *s) { +char *catta_strup(char *s) { char *c; assert(s); @@ -109,7 +109,7 @@ char *avahi_strup(char *s) { return s; } -char *avahi_strdown(char *s) { +char *catta_strdown(char *s) { char *c; assert(s);