From owner-cvs-all@FreeBSD.ORG Fri Jun 25 13:04:50 2004 Return-Path: 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 F1FB516A4CF; Fri, 25 Jun 2004 13:04:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE37443D2F; Fri, 25 Jun 2004 13:04:49 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5PD4nF1020064; Fri, 25 Jun 2004 13:04:49 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5PD4nYH020063; Fri, 25 Jun 2004 13:04:49 GMT (envelope-from sobomax) Message-Id: <200406251304.i5PD4nYH020063@repoman.freebsd.org> From: Maxim Sobolev Date: Fri, 25 Jun 2004 13:04:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/gbde gbde.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 13:04:50 -0000 sobomax 2004-06-25 13:04:49 UTC FreeBSD src repository Modified files: sbin/gbde gbde.c Log: o Fix semantics of comparison function for qsort(3). According to qsort(3) manpage: The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Therefore, simply returning "arg1 > arg2" is incorrect. Actually it works but for the number of items to be sorted less than 7 due to special case handling in qsort(3); o add missing '\n' to one of usage() calls. Approved by: phk Revision Changes Path 1.23 +6 -2 src/sbin/gbde/gbde.c