]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Use NULL to signify NULL pointer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Nov 2016 17:27:17 +0000 (12:27 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:15 +0000 (20:26 -0500)
Use the NULL c symbol to signify that we are
intentionally setting the pointer to NULL
instead of 0.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_igmpv3.c

index 2e23cdb10f4f3d905dc4e0f8e9e00be040c793fc..987ab895ae63a6fc0f588e613e88521f0b7970a3 100644 (file)
@@ -131,7 +131,7 @@ static int igmp_source_timer(struct thread *t)
   }
 
   zassert(source->t_source_timer);
-  source->t_source_timer = 0;
+  source->t_source_timer = NULL;
 
   /*
     RFC 3376: 6.3. IGMPv3 Source-Specific Forwarding Rules
@@ -338,7 +338,7 @@ static void source_channel_oil_detach(struct igmp_source *source)
 {
   if (source->source_channel_oil) {
     pim_channel_oil_del(source->source_channel_oil);
-    source->source_channel_oil = 0;
+    source->source_channel_oil = NULL;
   }
 }
 
@@ -1276,7 +1276,7 @@ static int igmp_group_retransmit(struct thread *t)
   num_retransmit_sources_left = group_retransmit_sources(group,
                                                         send_with_sflag_set);
 
-  group->t_group_query_retransmit_timer = 0;
+  group->t_group_query_retransmit_timer = NULL;
 
   /*
     Keep group retransmit timer running if there is any retransmit