From d030d2d2aee170303ffb5eed3183616ef7ddfbb4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 18 Sep 1997 14:08:40 +0000 Subject: Many places in the code NULL is used in integer context, where plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul --- libexec/ftpd/ftpcmd.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ftpd') diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 659081b4bf8f..1e9f1cd18b97 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ftpcmd.y 8.3 (Berkeley) 4/6/94 - * $Id: ftpcmd.y,v 1.10 1997/02/22 14:21:27 peter Exp $ + * $Id: ftpcmd.y,v 1.11 1997/07/24 09:26:10 davidn Exp $ */ /* @@ -957,7 +957,7 @@ yylex() } (void) alarm(0); #ifdef SETPROCTITLE - if (strncasecmp(cbuf, "PASS", 4) != NULL) + if (strncasecmp(cbuf, "PASS", 4) != 0) setproctitle("%s: %s", proctitle, cbuf); #endif /* SETPROCTITLE */ if ((cp = strchr(cbuf, '\r'))) { -- cgit v1.3