ust: fix warnings
[ust.git] / ust / ust.c
index 79db4989a4ecac23ad25180339ffbe926b933611..d957cb3ac9068ec69db594936a02a1107adcb932 100644 (file)
--- a/ust/ust.c
+++ b/ust/ust.c
@@ -1,7 +1,8 @@
+#define _GNU_SOURCE
+#include <stdio.h>
 #include <unistd.h>
 #include <getopt.h>
 #include <stdlib.h>
-#include <stdio.h>
 #include <fcntl.h>
 
 #include "ustcomm.h"
@@ -33,14 +34,12 @@ Commands:\n\
 int parse_opts_long(int argc, char **argv, struct ust_opts *opts)
 {
        int c;
-       int digit_optind = 0;
 
        opts->cmd = NULL;
        opts->pids = NULL;
        opts->take_reply = 0;
 
        while (1) {
-               int this_option_optind = optind ? optind : 1;
                int option_index = 0;
                static struct option long_options[] = {
                        {"start-trace", 0, 0, 1000},
This page took 0.023617 seconds and 4 git commands to generate.