[PATCH] usbreset.c: add missing <stdlib.h> include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Without it one gets:

  $ gcc -o usbreset usbreset.c
  usbreset.c: In function 'parse_devlist':
  usbreset.c:68:17: warning: implicit declaration of function 'strtoul'; did you mean 'strtok'? [-Wimplicit-function-declaration]
     dev.bus_num = strtoul(attr, NULL, 10);
                   ^~~~~~~
                   strtok

Signed-off-by: Aurelien Jarno <aurelien@xxxxxxxxxxx>
---
 usbreset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usbreset.c b/usbreset.c
index abab543..7d7d445 100644
--- a/usbreset.c
+++ b/usbreset.c
@@ -3,6 +3,7 @@
 
 #include <stdio.h>
 #include <stdbool.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>
-- 
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux