aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tftp
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-20 01:28:31 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-20 01:28:31 +0000
commitb4b3d271de2da748fc1eb58aaa7b1164eee51206 (patch)
treedf24ca8a2115fd6301f09521aea520778ccc7559 /usr.bin/tftp
parent61c2ed541de842f3d2931bb87c877656a6710bf3 (diff)
downloadsrc-b4b3d271de2da748fc1eb58aaa7b1164eee51206.tar.gz
src-b4b3d271de2da748fc1eb58aaa7b1164eee51206.zip
Use NULL instead of 0 for pointers.
Small cosmetic change. MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298325
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r--usr.bin/tftp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 7d97a75d7f30..2eaff80be86e 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -749,11 +749,11 @@ command(void)
if (margc == 0)
continue;
c = getcmd(margv[0]);
- if (c == (struct cmd *)-1) {
+ if (c == (struct cmd *) - 1) {
printf("?Ambiguous command\n");
continue;
}
- if (c == 0) {
+ if (c == NULL) {
printf("?Invalid command\n");
continue;
}