aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:23:38 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:23:38 +0000
commit509d469d4edec85584b70e7ba54c0a88bc96ddea (patch)
tree607106f78bab423ae7947d5b9a66a5d4707809ab /URPM.xs
parentd0a361d3f7674910ac74be4454333696239457b3 (diff)
downloadperl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar
perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.gz
perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.bz2
perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.xz
perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.zip
use NULL rather than 0 for header pointers
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs10
1 files changed, 5 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index d6453d0..1e0559e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -823,7 +823,7 @@ pack_header(URPM__Package pkg) {
}
if (!(pkg->flag & FLAG_NO_HEADER_FREE)) pkg->h =headerFree(pkg->h);
- pkg->h = 0;
+ pkg->h = NULL;
}
}
@@ -2782,7 +2782,7 @@ Db_traverse(db,callback)
call_sv(callback, G_DISCARD | G_SCALAR);
SPAGAIN;
- pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */
+ pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */
}
++count;
}
@@ -2836,7 +2836,7 @@ Db_traverse_tag(db,tag,names,callback)
call_sv(callback, G_DISCARD | G_SCALAR);
SPAGAIN;
- pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */
+ pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */
}
++count;
}
@@ -2881,7 +2881,7 @@ Db_traverse_tag_find(db,tag,name,callback)
int count = call_sv(callback, G_SCALAR);
SPAGAIN;
- pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */
+ pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */
if (count == 1 && POPi) {
found = 1;
@@ -3027,7 +3027,7 @@ Trans_traverse(trans, callback)
PUTBACK;
call_sv(callback, G_DISCARD | G_SCALAR);
SPAGAIN;
- pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */
+ pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */
}
++c;
}