aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 16:49:16 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 16:49:24 +0100
commit1f8e22922121b5900521c6be97994087bb0e7d6c (patch)
treefd7d363bbe17737f1379c957a9d6ebfff36c704d /src
parent00f52cc3d61f373b8778a853ae1ede7fe9e95e90 (diff)
Use NULL as default value for pointer type
Using zero there is confusing since it's a pointer to an integer. Change-Id: Ief2368954c71005c529e3eea3fee5df2630e44c1
Diffstat (limited to 'src')
-rw-r--r--src/gprs_rlcmac_ts_alloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index 4c68a87d..6b34418b 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -147,7 +147,7 @@ static int compute_usage_for_algo_a(const struct gprs_rlcmac_pdch *pdch, enum gp
*/
static int find_least_busy_pdch(const struct gprs_rlcmac_trx *trx, enum gprs_rlcmac_tbf_direction dir, uint8_t mask,
int (*fn)(const struct gprs_rlcmac_pdch *, enum gprs_rlcmac_tbf_direction dir),
- int *free_tfi = 0, int *free_usf = 0)
+ int *free_tfi = NULL, int *free_usf = NULL)
{
unsigned ts;
int min_used = INT_MAX;