diff options
author | Ben Pfaff <blp@nicira.com> | 2011-05-04 13:49:42 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-05-16 13:40:47 -0700 |
commit | e3c17733704fd54fa937ed5e1e8c4b51e00961f1 (patch) | |
tree | 78dd7e21f574d1a4614df73fd79e0b239e93201c /lib/table.h | |
parent | 1102893de4f14a2d184afc640c9a1edf778c6a93 (diff) | |
download | openvswitch-e3c17733704fd54fa937ed5e1e8c4b51e00961f1.tar.gz |
Consistently write null pointer constants as NULL instead of 0.
Found with sparse.
Diffstat (limited to 'lib/table.h')
-rw-r--r-- | lib/table.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/table.h b/lib/table.h index e35fefaf4..146d4dfe3 100644 --- a/lib/table.h +++ b/lib/table.h @@ -85,12 +85,12 @@ struct table_style { OPT_PRETTY, \ OPT_BARE -#define TABLE_LONG_OPTIONS \ - {"format", required_argument, 0, 'f'}, \ - {"data", required_argument, 0, 'd'}, \ - {"no-headings", no_argument, 0, OPT_NO_HEADINGS}, \ - {"pretty", no_argument, 0, OPT_PRETTY}, \ - {"bare", no_argument, 0, OPT_BARE} +#define TABLE_LONG_OPTIONS \ + {"format", required_argument, NULL, 'f'}, \ + {"data", required_argument, NULL, 'd'}, \ + {"no-headings", no_argument, NULL, OPT_NO_HEADINGS}, \ + {"pretty", no_argument, NULL, OPT_PRETTY}, \ + {"bare", no_argument, NULL, OPT_BARE} #define TABLE_OPTION_HANDLERS(STYLE) \ case 'f': \ |