From ab8da71d29ad30030e39fd00aa2dc09666446b61 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 3 Feb 2008 16:48:02 +0000 Subject: Remove popt and use glib GOption commandline option parser (glib-2.6 is now the minimum required version). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4700 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/irssi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fe-text') diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index f70724f4..9e3a9e21 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -329,10 +329,10 @@ GMemVTable gc_mem_table = { int main(int argc, char **argv) { static int version = 0; - static struct poptOption options[] = { - { "dummy", 'd', POPT_ARG_NONE, &dummy, 0, "Use the dummy terminal mode", NULL }, - { "version", 'v', POPT_ARG_NONE, &version, 0, "Display irssi version", NULL }, - { NULL, '\0', 0, NULL } + static GOptionEntry options[] = { + { "dummy", 'd', 0, G_OPTION_ARG_NONE, &dummy, "Use the dummy terminal mode", NULL }, + { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Display irssi version", NULL }, + { NULL } }; core_register_options(); -- cgit v1.2.3