From e3c17733704fd54fa937ed5e1e8c4b51e00961f1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 May 2011 13:49:42 -0700 Subject: Consistently write null pointer constants as NULL instead of 0. Found with sparse. --- lib/table.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/table.h') 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': \ -- cgit v1.2.1