From ef13567352fe6f583109684f24cb77d12fe3af0a Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 17 Dec 2000 21:47:54 +0000 Subject: 13288: cast pointers for arg 2 of ztrapread/write --- ChangeLog | 3 +++ Src/Modules/zftp.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4ce81d2bf..75c56d40d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-12-17 Clint Adams + * 13288: Src/Modules/zftp.c: cast pointers when calling + ztrapread and ztrapwrite. + * 13287: Completion/Debian/_dpkg: complete multiple arguments for -i. diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index ef37dbdc7..5813a9144 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -2846,7 +2846,7 @@ zfclose(int leaveparams) 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 @@ bin_zftp(char *name, char **args, char *ops, int func) /* 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 @@ bin_zftp(char *name, char **args, char *ops, int func) * 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; } -- cgit 1.4.1