Fix build on amd64 on 8 and 9.
This commit is contained in:
parent
ca85760575
commit
918d9f3314
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366653
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user