Use NULL as default value for pointer type

Using zero there is confusing since it's a pointer to an integer.

Change-Id: Ief2368954c71005c529e3eea3fee5df2630e44c1
This commit is contained in:
Pau Espin 2021-02-19 16:49:16 +01:00
parent 00f52cc3d6
commit 1f8e229221
1 changed files with 1 additions and 1 deletions

View File

@ -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;