Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp subtracting two pointers yields ptrdiff_t, so ca...
details: https://anonhg.NetBSD.org/src/rev/e0a03739c9a9
branches: trunk
changeset: 777599:e0a03739c9a9
user: apb <apb%NetBSD.org@localhost>
date: Fri Feb 24 19:53:31 2012 +0000
description:
subtracting two pointers yields ptrdiff_t, so cast it to int.
diffstat:
usr.bin/ftp/fetch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a03d9a078e23 -r e0a03739c9a9 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Fri Feb 24 19:40:49 2012 +0000
+++ b/usr.bin/ftp/fetch.c Fri Feb 24 19:53:31 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.196 2012/02/24 19:40:49 apb Exp $ */
+/* $NetBSD: fetch.c,v 1.197 2012/02/24 19:53:31 apb Exp $ */
/*-
* Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.196 2012/02/24 19:40:49 apb Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.197 2012/02/24 19:53:31 apb Exp $");
#endif /* not lint */
/*
@@ -1741,7 +1741,7 @@
* so we don't try to match that here.
*/
if ((p = strstr(url, "://")) != NULL && ! STRNEQUAL(url, FTP_URL))
- errx(1, "Unsupported URL scheme `%.*s'", (p - url), url);
+ errx(1, "Unsupported URL scheme `%.*s'", (int)(p - url), url);
/*
* Try FTP URL-style and host:file arguments next.
Home |
Main Index |
Thread Index |
Old Index