Module Name:    src
Committed By:   apb
Date:           Fri Feb 24 19:53:31 UTC 2012

Modified Files:
        src/usr.bin/ftp: fetch.c

Log Message:
subtracting two pointers yields ptrdiff_t, so cast it to int.


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/usr.bin/ftp/fetch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/ftp/fetch.c
diff -u src/usr.bin/ftp/fetch.c:1.196 src/usr.bin/ftp/fetch.c:1.197
--- src/usr.bin/ftp/fetch.c:1.196	Fri Feb 24 19:40:49 2012
+++ src/usr.bin/ftp/fetch.c	Fri Feb 24 19:53:31 2012
@@ -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 @@ go_fetch(const char *url)
 	 * 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.

Reply via email to