From ee9fb3dda91066c236f6e0db38ae711d5eafb6d3 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 13:54:06 +0100 Subject: axgetput: Fix use of 0 instead of NULL as a pointer value. Signed-off-by: Ralf Baechle --- ax25/axgetput/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ax25') diff --git a/ax25/axgetput/util.c b/ax25/axgetput/util.c index f781f74..c09de1a 100644 --- a/ax25/axgetput/util.c +++ b/ax25/axgetput/util.c @@ -75,7 +75,7 @@ int my_read(int fd, char *s, int len_max, int *eof, char *p_break) timeout.tv_usec = 0; FD_ZERO(&errfds); FD_SET(fdout, &errfds); - if (select(fd+1, 0, 0, &errfds, &timeout) && FD_ISSET(fd, &errfds)) + if (select(fd+1, NULL, NULL, &errfds, &timeout) && FD_ISSET(fd, &errfds)) *eof = 1; return len_got; @@ -152,7 +152,7 @@ char *get_fixed_filename(char *line, long size, unsigned int msg_crc, int genera } } if (!*filename && generate_filename) { - sprintf(filename, "unknown-%ld%d%ld.bin", size, msg_crc, time(0)); + sprintf(filename, "unknown-%ld%d%ld.bin", size, msg_crc, time(NULL)); } return filename; } -- cgit v1.2.3