#include <assert.h>
#include <ctype.h>
-#include <glib.h>
-
+#include <avahi-common/malloc.h>
#include "util.h"
void avahi_hexdump(const void* p, size_t size) {
unsigned i;
static const char hex[] = "0123456789abcdef";
- t = r = g_new(char, size > 0 ? size*3 : 1);
+ if (!(t = r = avahi_new(char, size > 0 ? size*3 : 1)))
+ return NULL;
if (size <= 0) {
*r = 0;
return r;
}
-
-
char *avahi_strdown(char *s) {
char *c;
return s;
}
-