From owner-cvs-lib Thu Sep 18 07:06:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA07630 for cvs-lib-outgoing; Thu, 18 Sep 1997 07:06:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA07573; Thu, 18 Sep 1997 07:05:10 -0700 (PDT) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA06045; Thu, 18 Sep 1997 07:01:17 -0700 (PDT) Date: Thu, 18 Sep 1997 07:01:17 -0700 (PDT) Message-Id: <199709181401.HAA06045@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/db/btree bt_seq.c src/lib/libc/gen getcap.c getpwent.c src/lib/libftpio ftpio.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1997/09/18 07:01:17 PDT Modified files: lib/libc/db/btree bt_seq.c lib/libc/gen getcap.c getpwent.c lib/libftpio ftpio.c Log: 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 Revision Changes Path 1.2 +230 -150 src/lib/libc/db/btree/bt_seq.c 1.5 +1 -1 src/lib/libc/gen/getcap.c 1.43 +2 -2 src/lib/libc/gen/getpwent.c 1.26 +2 -2 src/lib/libftpio/ftpio.c