commit | 3265b1a3a494c2a679e0eea0cb2646f7aaa61561 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Oct 27 10:42:53 2009 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Oct 27 10:42:53 2009 +0100 |
tree | ece111027d28c7b64dd973f0a54944e0dc1a1b8c | |
parent | cde52559eff53a91f2a0c08cc24c2a73e9615fb0 [diff] |
misc: Use NULL instead of integer value for a NULL pointer
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 48c728c..541c6c3 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c
@@ -227,7 +227,7 @@ 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 @@ return lchan; } - return 0; + return NULL; }