summaryrefslogtreecommitdiff
path: root/usr/src/ucblib
diff options
context:
space:
mode:
authormuffin <none@none>2005-10-19 15:27:38 -0700
committermuffin <none@none>2005-10-19 15:27:38 -0700
commitbe10f7d91e42e379302ee5ead703b5f0bf8b47c6 (patch)
treef5ca6d6cb43971f0d1f8d1092c901f133266947f /usr/src/ucblib
parentf1f2d3ff14a8e180130feab20f9f275d089dd99c (diff)
downloadillumos-gate-be10f7d91e42e379302ee5ead703b5f0bf8b47c6.tar.gz
6273899 gcc and cmd/sunpc don't get along
6309267 gcc and ucblib don't get along 6309383 gcc and aoutexec don't get along
Diffstat (limited to 'usr/src/ucblib')
-rw-r--r--usr/src/ucblib/libucb/sparc/sys/signal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/ucblib/libucb/sparc/sys/signal.c b/usr/src/ucblib/libucb/sparc/sys/signal.c
index 4ade237db6..3e8d414f85 100644
--- a/usr/src/ucblib/libucb/sparc/sys/signal.c
+++ b/usr/src/ucblib/libucb/sparc/sys/signal.c
@@ -128,7 +128,7 @@ ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp)
* on sparc machines. (5.x does not increment the PC.)
*/
ucp->uc_mcontext.gregs[REG_PC] =
- ucp->uc_mcontext.gregs[REG_nPC];
+ ucp->uc_mcontext.gregs[REG_nPC];
ucp->uc_mcontext.gregs[REG_nPC] += 4;
}
sc.sc_sp = ucp->uc_mcontext.gregs[REG_SP];
@@ -154,7 +154,7 @@ ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp)
* ucontext_t isn't available to sigcleanup.
*/
sc.sc_wbcnt = (int)(sizeof (*ucp));
- sc.sc_spbuf[0] = (char *)sig;
+ sc.sc_spbuf[0] = (char *)(uintptr_t)sig;
sc.sc_spbuf[1] = (char *)ucp;
#ifdef NEVER
/*
@@ -347,7 +347,7 @@ __sigcleanup(struct sigcontext *scp)
* such as the original "out" registers when the signal occurred.
*/
if (scp->sc_wbcnt == sizeof (*ucp)) {
- sig = (int)scp->sc_spbuf[0];
+ sig = (int)(uintptr_t)scp->sc_spbuf[0];
ucp = (ucontext_t *)scp->sc_spbuf[1];
} else {
/*
@@ -510,7 +510,7 @@ ucbsigvec(int sig, struct sigvec *nvec, struct sigvec *ovec)
if (oact.sa_handler == SIG_DFL || oact.sa_handler == SIG_IGN)
ovec->sv_handler =
(void (*) (int, int, struct sigcontext *, char *))
- oact.sa_handler;
+ oact.sa_handler;
else
ovec->sv_handler = ohandler;
ovec->sv_mask = set2mask(&oact.sa_mask);
@@ -574,7 +574,7 @@ ucbsignal(int s, void (*a)(int)))(int)
if (nsv.sv_mask != osv.sv_mask || nsv.sv_flags != osv.sv_flags) {
mask[s] = nsv.sv_mask = osv.sv_mask;
flags[s] = nsv.sv_flags =
- osv.sv_flags & ~(SV_RESETHAND|SV_INTERRUPT);
+ osv.sv_flags & ~(SV_RESETHAND|SV_INTERRUPT);
if (ucbsigvec(s, &nsv, (struct sigvec *)0) < 0)
return (SIG_ERR);
}