summaryrefslogtreecommitdiff
path: root/scripts/mkrestrictiontable.pl
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-05-19 19:54:15 -0400
committerAllen Winter <allen.winter@kdab.com>2015-05-19 19:54:15 -0400
commit7ade507fed30f959bde7c964d2bdf939a2a91ae4 (patch)
treee9d0bcf2de2ace032e787a5324d74d2200e4f96a /scripts/mkrestrictiontable.pl
parent92f39ba83116ee67ab43a43458e94542ee878fb3 (diff)
downloadlibical-git-7ade507fed30f959bde7c964d2bdf939a2a91ae4.tar.gz
fix splint warnings in the generated icalrestriction.c
Diffstat (limited to 'scripts/mkrestrictiontable.pl')
-rwxr-xr-xscripts/mkrestrictiontable.pl5
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";
}
-