summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg>2014-01-07 23:25:12 +0000
committerjoerg <joerg>2014-01-07 23:25:12 +0000
commit072f734f4969d1a9cfdd4693096197b13efc3a42 (patch)
treec4eb3858625defaa25496bea219dd959f42e9fb0 /net/libfetch
parent8746f69e88c559294959ac022a528aa68d1c8fab (diff)
downloadpkgsrc-072f734f4969d1a9cfdd4693096197b13efc3a42.tar.gz
Apply some explicit int casts for size_t format string arguments.
Diffstat (limited to 'net/libfetch')
-rw-r--r--net/libfetch/Makefile5
-rw-r--r--net/libfetch/files/common.h2
-rw-r--r--net/libfetch/files/ftp.c11
-rw-r--r--net/libfetch/files/http.c3
4 files changed, 11 insertions, 10 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile
index 52beaed1b55..29549565fd6 100644
--- a/net/libfetch/Makefile
+++ b/net/libfetch/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.48 2013/07/22 16:14:25 jperkin Exp $
+# $NetBSD: Makefile,v 1.49 2014/01/07 23:25:12 joerg Exp $
#
-DISTNAME= libfetch-2.34
-PKGREVISION= 2
+DISTNAME= libfetch-2.35
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/net/libfetch/files/common.h b/net/libfetch/files/common.h
index cf895a9f5e6..d769878b31a 100644
--- a/net/libfetch/files/common.h
+++ b/net/libfetch/files/common.h
@@ -1,4 +1,4 @@
-/* $NetBSD: common.h,v 1.21 2013/02/10 12:33:22 obache Exp $ */
+/* $NetBSD: common.h,v 1.22 2014/01/07 23:25:12 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 3eea3407b00..34002cc0d32 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.43 2012/10/15 22:43:24 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.44 2014/01/07 23:25:12 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008, 2009, 2010 Joerg Sonnenberger <joerg@NetBSD.org>
@@ -201,6 +201,7 @@ ftp_chkerr(conn_t *conn)
/*
* Send a command and check reply
*/
+LIBFETCH_PRINTFLIKE(2, 3)
static int
ftp_cmd(conn_t *conn, const char *fmt, ...)
{
@@ -485,7 +486,7 @@ ftp_stat(conn_t *conn, const char *file, struct url_stat *us)
return (-1);
}
- e = ftp_cmd(conn, "SIZE %.*s\r\n", filenamelen, filename);
+ e = ftp_cmd(conn, "SIZE %.*s\r\n", (int)filenamelen, filename);
if (e != FTP_FILE_STATUS) {
ftp_seterr(e);
return (-1);
@@ -502,7 +503,7 @@ ftp_stat(conn_t *conn, const char *file, struct url_stat *us)
if (us->size == 0)
us->size = -1;
- e = ftp_cmd(conn, "MDTM %.*s\r\n", filenamelen, filename);
+ e = ftp_cmd(conn, "MDTM %.*s\r\n", (int)filenamelen, filename);
if (e != FTP_FILE_STATUS) {
ftp_seterr(e);
return (-1);
@@ -845,7 +846,7 @@ retry_mode:
e = ftp_cmd(conn, "%s%s%s\r\n", oper, *op_arg ? " " : "", op_arg);
else
e = ftp_cmd(conn, "%s %.*s\r\n", oper,
- filenamelen, filename);
+ (int)filenamelen, filename);
if (e != FTP_CONNECTION_ALREADY_OPEN && e != FTP_OPEN_DATA_CONNECTION)
goto ouch;
@@ -946,7 +947,7 @@ retry_mode:
e = ftp_cmd(conn, "%s%s%s\r\n", oper, *op_arg ? " " : "", op_arg);
else
e = ftp_cmd(conn, "%s %.*s\r\n", oper,
- filenamelen, filename);
+ (int)filenamelen, filename);
if (e != FTP_CONNECTION_ALREADY_OPEN && e != FTP_OPEN_DATA_CONNECTION)
goto ouch;
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index 481abced6ba..d3b0fb03ba8 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.33 2013/07/26 10:21:41 ryoon Exp $ */
+/* $NetBSD: http.c,v 1.34 2014/01/07 23:25:12 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
@@ -409,6 +409,7 @@ static struct {
/*
* Send a formatted line; optionally echo to terminal
*/
+LIBFETCH_PRINTFLIKE(2, 3)
static int
http_cmd(conn_t *conn, const char *fmt, ...)
{