diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-05-19 19:54:15 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-05-19 19:54:15 -0400 |
commit | 7ade507fed30f959bde7c964d2bdf939a2a91ae4 (patch) | |
tree | e9d0bcf2de2ace032e787a5324d74d2200e4f96a /scripts/mkrestrictiontable.pl | |
parent | 92f39ba83116ee67ab43a43458e94542ee878fb3 (diff) | |
download | libical-git-7ade507fed30f959bde7c964d2bdf939a2a91ae4.tar.gz |
fix splint warnings in the generated icalrestriction.c
Diffstat (limited to 'scripts/mkrestrictiontable.pl')
-rwxr-xr-x | scripts/mkrestrictiontable.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/mkrestrictiontable.pl b/scripts/mkrestrictiontable.pl index 4202fbb5..5669bddd 100755 --- a/scripts/mkrestrictiontable.pl +++ b/scripts/mkrestrictiontable.pl @@ -62,7 +62,7 @@ sub insert_code next if !$method; if (!$sub) { - $sub = "0"; + $sub = "NULL"; } else { $sub = "icalrestriction_" . $sub; } @@ -76,9 +76,8 @@ sub insert_code } # Print the terminating line - print " {ICAL_METHOD_NONE,ICAL_NO_COMPONENT,ICAL_NO_PROPERTY,ICAL_RESTRICTION_NONE,0}\n"; + print " {ICAL_METHOD_NONE,ICAL_NO_COMPONENT,ICAL_NO_PROPERTY,ICAL_RESTRICTION_NONE,NULL}\n"; print "};\n"; } - |