summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-20 01:38:54 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-20 01:38:54 +0000
commit5329b494a9ff957d23e1bc526113796015e85f88 (patch)
treea79ab4b9cfefb43399a3b5df3d40f1f503db4bc0
parent8a86a0eb0afd4dc0688774c05576caa4ef448e62 (diff)
downloadFreeBSD-src-5329b494a9ff957d23e1bc526113796015e85f88.zip
FreeBSD-src-5329b494a9ff957d23e1bc526113796015e85f88.tar.gz
Partially revert the change on r298325 where there is an
(-1) casted to a pointer. Submitted by: pfg MFC after: 2 weeks.
-rw-r--r--usr.bin/tftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 2eaff80..dc9ed8c 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -749,7 +749,7 @@ 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;
}
OpenPOWER on IntegriCloud