summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-11-07 22:22:19 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-11-07 22:23:52 +0100
commit18f13f15b76459a3748be7092960939001aaea50 (patch)
tree81a0a8bb09f74e2faf423bbc036fce1262b62c54
parentc34e67c557fe8b40d2aa67bae5d7447d876f210a (diff)
ufod: remove unused --paths option
-rw-r--r--bin/ufod.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/ufod.c b/bin/ufod.c
index 20281b9..c92720e 100644
--- a/bin/ufod.c
+++ b/bin/ufod.c
@@ -34,7 +34,6 @@ static UfoDaemon *global_daemon = NULL;
static gboolean done = FALSE;
typedef struct {
- gchar **paths;
gchar *addr;
} Options;
@@ -50,12 +49,11 @@ opts_parse (gint *argc, gchar ***argv)
GOptionEntry entries[] = {
{ "listen", 'l', 0, G_OPTION_ARG_STRING, &opts->addr, "Address to listen on (see http://api.zeromq.org/3-2:zmq-tcp)", NULL },
- { "path", 'p', 0, G_OPTION_ARG_STRING_ARRAY, &opts->paths, "Path to node plugins or OpenCL kernels", NULL },
{ "version", 0, 0, G_OPTION_ARG_NONE, &show_version, "Show version information", NULL },
{ NULL }
};
- context = g_option_context_new ("FILE");
+ context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
if (!g_option_context_parse (context, argc, argv, &error)) {
@@ -80,7 +78,6 @@ opts_parse (gint *argc, gchar ***argv)
static void
opts_free (Options *opts)
{
- g_strfreev (opts->paths);
g_free (opts->addr);
g_free (opts);
}