From: Lennart Poettering Date: Fri, 6 May 2005 15:24:22 +0000 (+0000) Subject: fix main.c X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=242edd906c5949a394a0c8e6b3e18996d4ace63d;p=catta fix main.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@48 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/main.c b/main.c index 5631243..9699329 100644 --- a/main.c +++ b/main.c @@ -35,27 +35,27 @@ static void entry_group_callback(AvahiServer *s, AvahiEntryGroup *g, AvahiEntryG } int main(int argc, char *argv[]) { - AvahiServer *Avahi; + AvahiServer *avahi; gchar *r; GMainLoop *loop = NULL; AvahiSubscription *s; AvahiKey *k; AvahiEntryGroup *g; - Avahi = avahi_server_new(NULL); + avahi = avahi_server_new(NULL); -/* g = avahi_entry_group_new(Avahi, entry_group_callback, NULL); */ +/* g = avahi_entry_group_new(avahi, entry_group_callback, NULL); */ -/* avahi_server_add_text(Avahi, g, 0, AF_UNSPEC, AVAHI_ENTRY_UNIQUE, NULL, "hallo", NULL); */ -/* avahi_server_add_service(Avahi, g, 0, AF_UNSPEC, "_http._tcp", "gurke", NULL, NULL, 80, "foo", NULL); */ +/* avahi_server_add_text(avahi, g, 0, AF_UNSPEC, AVAHI_ENTRY_UNIQUE, NULL, "hallo", NULL); */ +/* avahi_server_add_service(avahi, g, 0, AF_UNSPEC, "_http._tcp", "gurke", NULL, NULL, 80, "foo", NULL); */ /* avahi_entry_group_commit(g); */ - avahi_server_dump(Avahi, stdout); + avahi_server_dump(avahi, stdout); /* k = avahi_key_new("ecstasy.local.", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_ANY); */ -/* s = avahi_subscription_new(Avahi, k, 0, AF_UNSPEC, subscription, NULL); */ +/* s = avahi_subscription_new(avahi, k, 0, AF_UNSPEC, subscription, NULL); */ /* avahi_key_unref(k); */ loop = g_main_loop_new(NULL, FALSE); @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) { /* avahi_subscription_free(s); */ /* avahi_entry_group_free(g); */ - avahi_server_free(Avahi); + avahi_server_free(avahi); return 0; }