ports/187800: Fix build errors for older releases

Yaroslav ya.cofeine at yandex.ru
Thu Mar 20 22:30:00 UTC 2014


>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 at 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:


More information about the freebsd-ports-bugs mailing list