diff options
Diffstat (limited to 'tools/checkwps')
-rw-r--r-- | tools/checkwps/checkwps.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 32d7ef16fd..6760d6215e 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c @@ -98,36 +98,6 @@ unsigned int htole32(unsigned int x) } #endif -int read_line(int fd, char* buffer, int buffer_size) -{ - int count = 0; - int num_read = 0; - - errno = 0; - - while (count < buffer_size) - { - unsigned char c; - - if (1 != read(fd, &c, 1)) - break; - - num_read++; - - if ( c == '\n' ) - break; - - if ( c == '\r' ) - continue; - - buffer[count++] = c; - } - - buffer[MIN(count, buffer_size - 1)] = 0; - - return errno ? -1 : num_read; -} - int recalc_dimension(struct dim *dst, struct dim *src) { return 0; |