From owner-cvs-all Thu Mar 13 15:32:31 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A9B637B401; Thu, 13 Mar 2003 15:32:29 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBF9C43FBF; Thu, 13 Mar 2003 15:32:28 -0800 (PST) (envelope-from robert@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2DNWS0U006808; Thu, 13 Mar 2003 15:32:28 -0800 (PST) (envelope-from robert@repoman.freebsd.org) Received: (from robert@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2DNWSxc006807; Thu, 13 Mar 2003 15:32:28 -0800 (PST) Message-Id: <200303132332.h2DNWSxc006807@repoman.freebsd.org> From: Robert Drehmel Date: Thu, 13 Mar 2003 15:32:28 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/cksum cksum.c crc.c crc32.c extern.h print.c sum1.c sum2.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG robert 2003/03/13 15:32:28 PST FreeBSD src repository Modified files: usr.bin/cksum cksum.c crc.c crc32.c extern.h print.c sum1.c sum2.c Log: - For variables holding offset values, use off_t rather than int, long int or u_int32_t. This changes the interface of all the CRC calculation and output functions from cksum. - Print variables of type off_t as intmax_t using a cast and %jd. - Use the standardized uint32_t type instead of u_int32_t. To have uint32_t defined, include where necessary. Style(9): - Move #include directives where they belong (esp. crc32.c). - Add empty lines between #include directives of system headers, standard library headers and local headers. - Test a pointer value against NULL. - Put a space after the return keyword. PR: bin/48424 Revision Changes Path 1.17 +5 -3 src/usr.bin/cksum/cksum.c 1.8 +8 -5 src/usr.bin/cksum/crc.c 1.9 +10 -9 src/usr.bin/cksum/crc32.c 1.6 +7 -7 src/usr.bin/cksum/extern.h 1.7 +13 -9 src/usr.bin/cksum/print.c 1.8 +7 -4 src/usr.bin/cksum/sum1.c 1.8 +7 -4 src/usr.bin/cksum/sum2.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message