From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 20 22:30:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFE82C4 for ; Thu, 20 Mar 2014 22:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D851D9D for ; Thu, 20 Mar 2014 22:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2KMU0BG043760 for ; Thu, 20 Mar 2014 22:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2KMU0iv043759; Thu, 20 Mar 2014 22:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 20 Mar 2014 22:30:00 GMT Resent-Message-Id: <201403202230.s2KMU0iv043759@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yaroslav Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C693F97 for ; Thu, 20 Mar 2014 22:27:58 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 290DDD7E for ; Thu, 20 Mar 2014 22:27:58 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2KMRvEL055097 for ; Thu, 20 Mar 2014 22:27:57 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2KMRv4q055094; Thu, 20 Mar 2014 22:27:57 GMT (envelope-from nobody) Message-Id: <201403202227.s2KMRv4q055094@cgiserv.freebsd.org> Date: Thu, 20 Mar 2014 22:27:57 GMT From: Yaroslav To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187800: Fix build errors for older releases X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 22:30:00 -0000 >Number: 187800 >Category: ports >Synopsis: Fix build errors for older releases >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 20 22:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Yaroslav >Release: FreeBSD 10-STABLE >Organization: >Environment: FreeBSD localhost 10.0-STABLE FreeBSD 10.0-STABLE #0: Mon Mar 17 12:14:32 MSK 2014 root@localhost:/usr/obj/usr/src/sys/VT i386 >Description: Fix build errors for older FreeBSD releases >How-To-Repeat: >Fix: Patch attached with submission follows: Index: src/rndpassw.c =================================================================== --- src/rndpassw.c (revision 3) +++ src/rndpassw.c (working copy) @@ -24,7 +24,7 @@ int main(int argc, char **argv) { - flags_t flags = { 0 }; + flags_t flags = {0, 0, 0, 0}; int passlen = -1, passcnt = -1; int opt, mixlen = 0, entlen, fd; unsigned i, y, baselen = 0; @@ -133,7 +133,7 @@ entoff = entbuf = malloc(entlen); if(entbuf == NULL) { - fprintf(stderr, "Could not allocate %zd bytes\n", entlen); + fprintf(stderr, "Could not allocate %d bytes\n", entlen); return (1); } @@ -148,7 +148,7 @@ /* create and fill dictionary */ mixbuf = malloc(mixlen); if(mixbuf == NULL) { - fprintf(stderr, "Could not allocate %zd bytes of memory\n", mixlen); + fprintf(stderr, "Could not allocate %d bytes of memory\n", mixlen); return (1); } >Release-Note: >Audit-Trail: >Unformatted: