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 <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to