summaryrefslogtreecommitdiff
path: root/dpkg-split
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2008-01-09 06:24:11 +0200
committerGuillem Jover <guillem@debian.org>2008-01-16 09:15:03 +0200
commit02680ecbbbf6da2b023891a11b38ecce5346dbbd (patch)
tree8e6c7cebb40ce85297bc13e0e68f4213c4a5dcd9 /dpkg-split
parentf52f2a333ef7609ddd7e9cab832f49295ff21dd9 (diff)
downloaddpkg-02680ecbbbf6da2b023891a11b38ecce5346dbbd.tar.gz
Use NULL instead of 0
Diffstat (limited to 'dpkg-split')
-rw-r--r--dpkg-split/join.c3
-rw-r--r--dpkg-split/queue.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/dpkg-split/join.c b/dpkg-split/join.c
index 4add3904a..7fd789fc6 100644
--- a/dpkg-split/join.c
+++ b/dpkg-split/join.c
@@ -114,7 +114,8 @@ void do_join(const char *const *argv) {
if (!refi || pq->info.thispartn < refi->thispartn) refi= &pq->info;
assert(refi);
partlist= nfmalloc(sizeof(struct partinfo*)*refi->maxpartn);
- for (i=0; i<refi->maxpartn; i++) partlist[i]= 0;
+ for (i = 0; i < refi->maxpartn; i++)
+ partlist[i] = NULL;
for (pq= queue; pq; pq= pq->nextinqueue) {
pi= &pq->info;
addtopartlist(partlist,pi,refi);
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c
index 342d19fdd..bcf7ffe09 100644
--- a/dpkg-split/queue.c
+++ b/dpkg-split/queue.c
@@ -120,7 +120,8 @@ void do_auto(const char *const *argv) {
fclose(part);
scandepot();
partlist= nfmalloc(sizeof(struct partinfo*)*refi->maxpartn);
- for (i=0; i<refi->maxpartn; i++) partlist[i]= 0;
+ for (i = 0; i < refi->maxpartn; i++)
+ partlist[i] = NULL;
for (pq= queue; pq; pq= pq->nextinqueue) {
pi= &pq->info;
if (!partmatches(pi,refi)) continue;