diff options
Diffstat (limited to 'toxav/phone.c')
-rwxr-xr-x | toxav/phone.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toxav/phone.c b/toxav/phone.c index 7806727d..92d16906 100755 --- a/toxav/phone.c +++ b/toxav/phone.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #endif /* HAVE_CONFIG_H */ | 35 | #endif /* HAVE_CONFIG_H */ |
36 | 36 | ||
37 | #define _BSD_SOURCE | 37 | #define _BSD_SOURCE |
38 | #define _GNU_SOURCE | ||
39 | 38 | ||
40 | #include <stdio.h> | 39 | #include <stdio.h> |
41 | #include <string.h> | 40 | #include <string.h> |
@@ -904,7 +903,7 @@ av_session_t* av_init_session() | |||
904 | INFO("Enter capture device number"); | 903 | INFO("Enter capture device number"); |
905 | 904 | ||
906 | char dev[2]; char* left; | 905 | char dev[2]; char* left; |
907 | fgets(dev, 2, stdin); | 906 | char* warned_ = fgets(dev, 2, stdin); |
908 | long selection = strtol(dev, &left, 10); | 907 | long selection = strtol(dev, &left, 10); |
909 | 908 | ||
910 | if ( *left ) { | 909 | if ( *left ) { |