diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-30 13:52:26 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-02-06 23:43:46 +0100 |
commit | 21a40789bc1cc94501167c3a4b2addcb800e6258 (patch) | |
tree | 83308c5b66f04650f27f0bf237a04b487bf2690b | |
parent | 9bb42aac69dd1fc2bfe9b87d66da44932e3ed819 (diff) |
mkiss: Fix use of 0 instead of NULL as a pointer value.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | kiss/mkiss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kiss/mkiss.c b/kiss/mkiss.c index 2904f70..bfdbdf5 100644 --- a/kiss/mkiss.c +++ b/kiss/mkiss.c @@ -553,7 +553,7 @@ int main(int argc, char *argv[]) if ((pty[i]->fd = open(pty_name, O_RDWR)) == -1) { perror("mkiss: open"); free(pty[i]); - pty[i] = 0; + pty[i] = NULL; return 1; } tty_raw(pty[i]->fd, FALSE); @@ -567,7 +567,7 @@ int main(int argc, char *argv[]) if ((npts = ptsname(pty[i]->fd)) == NULL) { fprintf(stderr, "mkiss: Cannot get name of pts-device.\n"); free(pty[i]); - pty[i] = 0; + pty[i] = NULL; return 1; } strncpy(pty[i]->namepts, npts, PATH_MAX-1); @@ -577,7 +577,7 @@ int main(int argc, char *argv[]) if (unlockpt(pty[i]->fd) == -1) { fprintf(stderr, "mkiss: Cannot unlock pts-device %s\n", pty[i]->namepts); free(pty[i]); - pty[i] = 0; + pty[i] = NULL; return 1; } if (wrote_info == 0) |