ipp2p: use c99 initializers in getopt structure

This commit is contained in:
Jan Engelhardt
2008-03-27 09:53:41 +01:00
parent 54f78ac3ef
commit 585cfd49ab

View File

@@ -1,3 +1,4 @@
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <netdb.h> #include <netdb.h>
#include <string.h> #include <string.h>
@@ -38,20 +39,20 @@ static void ipp2p_mt_help(void)
} }
static const struct option ipp2p_mt_opts[] = { static const struct option ipp2p_mt_opts[] = {
{ "edk", 0, 0, '2' }, {.name = "edk", .has_arg = false, .val = '2'},
{ "dc", 0, 0, '7' }, {.name = "dc", .has_arg = false, .val = '7'},
{ "gnu", 0, 0, '9' }, {.name = "gnu", .has_arg = false, .val = '9'},
{ "kazaa", 0, 0, 'a' }, {.name = "kazaa", .has_arg = false, .val = 'a'},
{ "bit", 0, 0, 'b' }, {.name = "bit", .has_arg = false, .val = 'b'},
{ "apple", 0, 0, 'c' }, {.name = "apple", .has_arg = false, .val = 'c'},
{ "soul", 0, 0, 'd' }, {.name = "soul", .has_arg = false, .val = 'd'},
{ "winmx", 0, 0, 'e' }, {.name = "winmx", .has_arg = false, .val = 'e'},
{ "ares", 0, 0, 'f' }, {.name = "ares", .has_arg = false, .val = 'f'},
{ "mute", 0, 0, 'g' }, {.name = "mute", .has_arg = false, .val = 'g'},
{ "waste", 0, 0, 'h' }, {.name = "waste", .has_arg = false, .val = 'h'},
{ "xdcc", 0, 0, 'i' }, {.name = "xdcc", .has_arg = false, .val = 'i'},
{ "debug", 0, 0, 'j' }, {.name = "debug", .has_arg = false, .val = 'j'},
{0}, {NULL},
}; };
static int ipp2p_mt_parse(int c, char **argv, int invert, unsigned int *flags, static int ipp2p_mt_parse(int c, char **argv, int invert, unsigned int *flags,