diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-15 09:39:38 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-17 14:27:10 -0300 |
commit | 2f4ce5ec1d447beb42143a9653716a2ab025161e (patch) | |
tree | 97c7c5342f217383a7fefc579ad16f8da62bb6a2 /tools/perf/util/help.h | |
parent | 46113a54be53aea50a4f5926b87e86e2e66c4266 (diff) |
perf tools: Finalize subcmd independence
For the files that will be moved to the subcmd library, remove all their
perf-specific includes and duplicate any needed functionality.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/6e12946f0f26ce4d543d34db68d9dae3c8551cb9.1450193761.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/help.h')
-rw-r--r-- | tools/perf/util/help.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/help.h b/tools/perf/util/help.h index 14851b0e44f5..096c8bc45cd7 100644 --- a/tools/perf/util/help.h +++ b/tools/perf/util/help.h @@ -1,12 +1,14 @@ #ifndef __PERF_HELP_H #define __PERF_HELP_H +#include <sys/types.h> + struct cmdnames { size_t alloc; size_t cnt; struct cmdname { size_t len; /* also used for similarity index in help.c */ - char name[FLEX_ARRAY]; + char name[]; } **names; }; |