]> git.meshlink.io Git - catta/blobdiff - src/util.c
rename everything avahi to catta
[catta] / src / util.c
index 8f4c43587f56a383cebc21c1b98a1ef1ed3400df..c3bb77a949b70ff38c119a60be793becd61537b7 100644 (file)
@@ -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.
 ***/
 #include <assert.h>
 #include <ctype.h>
 
-#include <avahi/malloc.h>
+#include <catta/malloc.h>
 #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);