From owner-cvs-usrsbin Sun May 7 00:48:43 1995 Return-Path: cvs-usrsbin-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA09317 for cvs-usrsbin-outgoing; Sun, 7 May 1995 00:48:43 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA09307 ; Sun, 7 May 1995 00:48:38 -0700 Date: Sun, 7 May 1995 00:48:38 -0700 From: Bruce Evans Message-Id: <199505070748.AAA09307@freefall.cdrom.com> To: CVS-commiters, cvs-usrsbin Subject: cvs commit: src/usr.sbin/edquota edquota.c Sender: cvs-usrsbin-owner@freebsd.org Precedence: bulk bde 95/05/07 00:48:37 Modified: usr.sbin/edquota edquota.c Log: Cast some expressions involving dbtob() to (unsigned long) and print them using %lu. This became more broken when I fixed dbtob() to support byte offsets >= 4GB. The type had to change to [u]quad_t. Previously the expressions had type unsigned long and were printed using %d. After division by 1024, the expressions are guaranteed to fit in an unsigned long, at least for the standard DEV_BSIZE, so edquota doesn't need to know about quad_t's explicitly. Fix all the other format mismatches exposed by compiling with -Wformat (6 more quota limits of type unsigned long printed using %d and 6 time_t's (i.e., longs) printed using %d).