aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:42:53 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:42:53 +0100
commitba92587cd5789d74ffa8675179f680232682edf1 (patch)
treeece111027d28c7b64dd973f0a54944e0dc1a1b8c /openbsc
parent251aa918da9bea6fcf5ba916df8b616b130e8ada (diff)
misc: Use NULL instead of integer value for a NULL pointer
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/chan_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 48c728c09..541c6c35e 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -227,7 +227,7 @@ void lchan_free(struct gsm_lchan *lchan)
lchan->type = GSM_LCHAN_NONE;
if (lchan->subscr) {
subscr_put(lchan->subscr);
- lchan->subscr = 0;
+ lchan->subscr = NULL;
}
/* We might kill an active channel... */
@@ -304,5 +304,5 @@ struct gsm_lchan *lchan_for_subscr(struct gsm_subscriber *subscr)
return lchan;
}
- return 0;
+ return NULL;
}