From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: ztrapread/write casting in zftp.c
Date: Sun, 17 Dec 2000 16:45:26 -0500 [thread overview]
Message-ID: <20001217164526.A23597@dman.com> (raw)
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;
}
next reply other threads:[~2000-12-17 21:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-17 21:45 Clint Adams [this message]
2000-12-17 22:42 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001217164526.A23597@dman.com \
--to=schizo@debian.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).