(*network_notify_hostip)() no longer gets 'hostip_string'.
[udpgate.git] / src / main.c
index aba413b..0f6b384 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
- * UDP forwarding utility
- * Copyright (C) 2004 Jan Kratochvil <project-udpforward@jankratochvil.net>
+ * UDP Gateway utility
+ * Copyright (C) 2004 Jan Kratochvil <project-udpgate@jankratochvil.net>
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,7 +38,7 @@ static int optarg_text;
 
 static const struct poptOption popt_table[]={
 
-#define UDPFORWARD_POPT(shortname,longname,argInfoP,argP,valP,descripP,argDescripP) \
+#define UDPGATE_POPT(shortname,longname,argInfoP,argP,valP,descripP,argDescripP) \
                { \
                        longName: (longname), \
                        shortName: (shortname), \
@@ -49,11 +49,11 @@ static const struct poptOption popt_table[]={
                        argDescrip: (argDescripP), \
                }
 
-               UDPFORWARD_POPT(0  ,"text"            ,POPT_ARG_NONE  ,&optarg_text   ,0,
+               UDPGATE_POPT(0  ,"text"            ,POPT_ARG_NONE  ,&optarg_text   ,0,
                                N_("Disable Gnome UI; --text must be first argument"),NULL),
-               UDPFORWARD_POPT('v',"verbose"         ,POPT_ARG_NONE  ,&optarg_verbose,0,N_("Display additional debug information"),NULL),
+               UDPGATE_POPT('v',"verbose"         ,POPT_ARG_NONE  ,&optarg_verbose,0,N_("Display additional debug information"),NULL),
 
-#undef UDPFORWARD_POPT
+#undef UDPGATE_POPT
                POPT_TABLEEND
                };
 
@@ -77,7 +77,7 @@ static void gnome_init_atexit_handler(void)
        _exit(EXIT_FAILURE);
 }
 
-gboolean gnome_init_g_log_handler_hit;
+static gboolean gnome_init_g_log_handler_hit;
 static void gnome_init_g_log_handler(const gchar *log_domain,GLogLevelFlags log_level,const gchar *message,gpointer user_data)
 {
        gnome_init_g_log_handler_hit=TRUE;