From 1d1b697bc6b13b5db1594c3dafe5452b6b2c1668 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Thu, 8 Sep 2016 06:27:35 +0200 Subject: use NULL instead of 0 for assigning null pointer Signed-off-by: Amir Hammad --- src/demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index 995e68c..44a94c0 100644 --- a/src/demo.c +++ b/src/demo.c @@ -119,7 +119,7 @@ static const usbh_dev_driver_t *device_drivers[] = { &usbh_hid_driver, &usbh_gp_xbox_driver, &usbh_midi_driver, - 0 + NULL }; static void gp_xbox_update(uint8_t device_id, gp_xbox_packet_t packet) @@ -234,7 +234,7 @@ int main(void) #ifdef USE_STM32F4_USBH_DRIVER_HS usbh_lld_stm32f4_driver_hs, // Make sure USE_STM32F4_USBH_DRIVER_HS is defined in usbh_config.h #endif - 0 + NULL }; usbh_init(lld_drivers, device_drivers); gpio_clear(GPIOD, GPIO13); -- cgit