zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: ztrapread/write casting in zftp.c
@ 2000-12-17 21:45 Clint Adams
  2000-12-17 22:42 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2000-12-17 21:45 UTC (permalink / raw)
  To: zsh-workers

This gets rid of some of gcc's warnings about incompatible pointer types.

Index: Src/Modules/zftp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
retrieving revision 1.8
diff -u -r1.8 zftp.c
--- Src/Modules/zftp.c	2000/11/11 19:50:29	1.8
+++ Src/Modules/zftp.c	2000/12/17 21:42:51
@@ -2846,7 +2846,7 @@
 	if (!zfnopen) {
 	    /* Write the final status in case this is a subshell */
 	    lseek(zfstatfd, zfsessno*sizeof(int), 0);
-	    ztrapwrite(zfstatfd, zfstatusp+zfsessno, sizeof(int));
+	    ztrapwrite(zfstatfd, (char *)zfstatusp+zfsessno, sizeof(int));
 
 	    close(zfstatfd);
 	    zfstatfd = -1;
@@ -3123,7 +3123,7 @@
 	/* Get the status in case it was set by a forked process */
 	int oldstatus = zfstatusp[zfsessno];
 	lseek(zfstatfd, 0, 0);
-	ztrapread(zfstatfd, zfstatusp, sizeof(int)*zfsesscnt);
+	ztrapread(zfstatfd, (char *)zfstatusp, sizeof(int)*zfsesscnt);
 	if (zfsess->cfd != -1 && (zfstatusp[zfsessno] & ZFST_CLOS)) {
 	    /* got closed in subshell without us knowing */
 	    zcfinish = 2;
@@ -3212,7 +3212,7 @@
 	 * but only for the active session.
 	 */
 	lseek(zfstatfd, zfsessno*sizeof(int), 0);
-	ztrapwrite(zfstatfd, zfstatusp+zfsessno, sizeof(int));
+	ztrapwrite(zfstatfd, (char *)zfstatusp+zfsessno, sizeof(int));
     }
     return ret;
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: ztrapread/write casting in zftp.c
  2000-12-17 21:45 PATCH: ztrapread/write casting in zftp.c Clint Adams
@ 2000-12-17 22:42 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-12-17 22:42 UTC (permalink / raw)
  To: Clint Adams, zsh-workers

On Dec 17,  4:45pm, Clint Adams wrote:
} Subject: PATCH: ztrapread/write casting in zftp.c
}
} This gets rid of some of gcc's warnings about incompatible pointer types.

This is going to cause conflicts with Sven's not-yet-committed patch that
backs out ztrapread/ztrapwrite again in favor of using the signal queue.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-17 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-17 21:45 PATCH: ztrapread/write casting in zftp.c Clint Adams
2000-12-17 22:42 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).