-static struct option const longopts[] = {
- { "help", no_argument, 0, 'h' },
- { "client", no_argument, 0, 'c' },
- { "reply", no_argument, 0, 'r' },
- { 0, 0, 0, 0}
-};
+static struct option const long_opts[] = {
+ { .val = 'c', .name = "client", .has_arg = no_argument },
+ { .val = 'h', .name = "help", .has_arg = no_argument },
+ { .val = 'r', .name = "reply", .has_arg = no_argument },
+ { .name = NULL } };