Module Name:    src
Committed By:   christos
Date:           Fri Mar 18 18:42:25 UTC 2016

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

Log Message:
sprinkle more volatile (distribution build with gcc-5.3)


To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 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.221 src/usr.bin/ftp/fetch.c:1.222
--- src/usr.bin/ftp/fetch.c:1.221	Thu Feb  4 22:41:05 2016
+++ src/usr.bin/ftp/fetch.c	Fri Mar 18 14:42:25 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: fetch.c,v 1.221 2016/02/05 03:41:05 nonaka Exp $	*/
+/*	$NetBSD: fetch.c,v 1.222 2016/03/18 18:42:25 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.221 2016/02/05 03:41:05 nonaka Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.222 2016/03/18 18:42:25 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -954,7 +954,8 @@ parse_posinfo(const char **cp, struct po
 static int
 negotiate_connection(FETCH *fin, const char *url, const char *penv,
     struct posinfo *pi, time_t *mtime, struct authinfo *wauth,
-    struct authinfo *pauth, int *rval, int *ischunked, char **auth)
+    struct authinfo *pauth, volatile int *rval, volatile int *ischunked,
+    char **auth)
 {
 	int			len, hcode, rv;
 	char			buf[FTPBUFLEN], *ep;
@@ -1260,7 +1261,7 @@ fetch_url(const char *url, const char *p
 	int volatile		s;
 	struct stat		sb;
 	int volatile		isproxy;
-	int 			rval, ischunked;
+	int volatile 		rval, ischunked;
 	size_t			flen;
 	static size_t		bufsize;
 	static char		*xferbuf;

Reply via email to