summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2009-03-25 22:43:00 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2009-03-25 22:43:00 +0000
commit5b50f63abad000170e5fa6173975059cb8e8e96e (patch)
tree3e29b544203234a4c6a4ecdccde00afd849eb36f
parent6955677230481632c40b5626fb004d389d1fc3ac (diff)
Nuke old useless define. Miod was ok with the idea.
-rw-r--r--sys/arch/hp300/hp300/hpux_machdep.c4
-rw-r--r--sys/arch/m68k/m68k/sig_machdep.c4
-rw-r--r--sys/arch/mvme68k/mvme68k/hpux_machdep.c4
-rw-r--r--sys/sys/param.h4
4 files changed, 7 insertions, 9 deletions
diff --git a/sys/arch/hp300/hp300/hpux_machdep.c b/sys/arch/hp300/hp300/hpux_machdep.c
index 74eec250d6c..e478ceceea0 100644
--- a/sys/arch/hp300/hp300/hpux_machdep.c
+++ b/sys/arch/hp300/hp300/hpux_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_machdep.c,v 1.22 2008/05/01 15:30:29 miod Exp $ */
+/* $OpenBSD: hpux_machdep.c,v 1.23 2009/03/25 22:42:58 weingart Exp $ */
/* $NetBSD: hpux_machdep.c,v 1.19 1998/02/16 20:58:30 thorpej Exp $ */
/*
@@ -632,7 +632,7 @@ hpux_sys_sigreturn(p, v, retval)
*/
if (flags & HSS_USERREGS)
bcopy((caddr_t)tstate.hss_frame.f_regs,
- (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*NBPW);
+ (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*sizeof(int));
/*
* Restore long stack frames. Note that we do not copy
diff --git a/sys/arch/m68k/m68k/sig_machdep.c b/sys/arch/m68k/m68k/sig_machdep.c
index 36832c6bc55..ae07a5d9d3c 100644
--- a/sys/arch/m68k/m68k/sig_machdep.c
+++ b/sys/arch/m68k/m68k/sig_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sig_machdep.c,v 1.19 2007/11/02 19:18:54 martin Exp $ */
+/* $OpenBSD: sig_machdep.c,v 1.20 2009/03/25 22:42:58 weingart Exp $ */
/* $NetBSD: sig_machdep.c,v 1.3 1997/04/30 23:28:03 gwr Exp $ */
/*
@@ -362,7 +362,7 @@ sys_sigreturn(p, v, retval)
*/
if (flags & SS_USERREGS)
bcopy((caddr_t)tstate.ss_frame.f_regs,
- (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*NBPW);
+ (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*sizeof(int));
/*
* Restore long stack frames. Note that we do not copy
* back the saved SR or PC, they were picked up above from
diff --git a/sys/arch/mvme68k/mvme68k/hpux_machdep.c b/sys/arch/mvme68k/mvme68k/hpux_machdep.c
index 2c10d677863..10de23f574c 100644
--- a/sys/arch/mvme68k/mvme68k/hpux_machdep.c
+++ b/sys/arch/mvme68k/mvme68k/hpux_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_machdep.c,v 1.16 2008/05/01 15:30:30 miod Exp $ */
+/* $OpenBSD: hpux_machdep.c,v 1.17 2009/03/25 22:42:58 weingart Exp $ */
/* $NetBSD: hpux_machdep.c,v 1.9 1997/03/16 10:00:45 thorpej Exp $ */
/*
@@ -670,7 +670,7 @@ hpux_sys_sigreturn(p, v, retval)
*/
if (flags & HSS_USERREGS)
bcopy((caddr_t)tstate.hss_frame.f_regs,
- (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*NBPW);
+ (caddr_t)frame->f_regs, sizeof(frame->f_regs)-2*sizeof(int));
/*
* Restore long stack frames. Note that we do not copy
diff --git a/sys/sys/param.h b/sys/sys/param.h
index cfe9a8c1c10..c0851fbdef1 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.82 2009/02/08 21:02:22 miod Exp $ */
+/* $OpenBSD: param.h,v 1.83 2009/03/25 22:42:59 weingart Exp $ */
/* $NetBSD: param.h,v 1.23 1996/03/17 01:02:29 thorpej Exp $ */
/*-
@@ -116,8 +116,6 @@
#define PNORELOCK 0x200 /* OR'd with pri for msleep to not reaquire
the mutex */
-#define NBPW sizeof(int) /* number of bytes per word (integer) */
-
#define CMASK 022 /* default file mask: S_IWGRP|S_IWOTH */
#define NODEV (dev_t)(-1) /* non-existent device */
#define NETDEV (dev_t)(-2) /* network device (for nfs swap) */