diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-30 13:54:06 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-02-06 23:43:46 +0100 |
commit | ee9fb3dda91066c236f6e0db38ae711d5eafb6d3 (patch) | |
tree | 8d6c6b8f20dcea1cae3a7a2240534ed6cc86fd51 /ax25/axgetput | |
parent | 21a40789bc1cc94501167c3a4b2addcb800e6258 (diff) |
axgetput: Fix use of 0 instead of NULL as a pointer value.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25/axgetput')
-rw-r--r-- | ax25/axgetput/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |