Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2014 17:26:40 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366653 - in head/security/rndpassw: . files
Message-ID:  <201408301726.s7UHQe5L049266@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sat Aug 30 17:26:40 2014
New Revision: 366653
URL: http://svnweb.freebsd.org/changeset/ports/366653
QAT: https://qat.redports.org/buildarchive/r366653/

Log:
  Fix build on amd64 on 8 and 9.

Modified:
  head/security/rndpassw/Makefile
  head/security/rndpassw/files/patch-src_rndpassw.c

Modified: head/security/rndpassw/Makefile
==============================================================================
--- head/security/rndpassw/Makefile	Sat Aug 30 17:24:37 2014	(r366652)
+++ head/security/rndpassw/Makefile	Sat Aug 30 17:26:40 2014	(r366653)
@@ -10,7 +10,7 @@ COMMENT=	CLI password generator
 
 LICENSE=	BSD3CLAUSE
 
-USES=	tar:bzip2
+USES=		tar:bzip2
 
 PLIST_FILES=	bin/rndpassw \
 		man/man1/rndpassw.1.gz

Modified: head/security/rndpassw/files/patch-src_rndpassw.c
==============================================================================
--- head/security/rndpassw/files/patch-src_rndpassw.c	Sat Aug 30 17:24:37 2014	(r366652)
+++ head/security/rndpassw/files/patch-src_rndpassw.c	Sat Aug 30 17:26:40 2014	(r366653)
@@ -1,5 +1,5 @@
---- src/rndpassw.c.orig	2014-03-04 18:01:47.477094722 +0100
-+++ src/rndpassw.c	2014-03-04 18:02:16.047437566 +0100
+--- src/rndpassw.c.orig	2014-03-02 18:22:27.000000000 -0500
++++ src/rndpassw.c	2014-08-30 13:24:58.742060993 -0400
 @@ -24,7 +24,7 @@
  
  int main(int argc, char **argv)
@@ -9,3 +9,21 @@
      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 %zd bytes\n", (size_t)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 %zd bytes of memory\n", (size_t)mixlen);
+         return (1);
+     }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408301726.s7UHQe5L049266>