Date: Thu, 20 Mar 2014 22:27:57 GMT From: Yaroslav <ya.cofeine@yandex.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187800: Fix build errors for older releases Message-ID: <201403202227.s2KMRv4q055094@cgiserv.freebsd.org> Resent-Message-ID: <201403202230.s2KMU0iv043759@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403202227.s2KMRv4q055094>