summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-16 01:21:52 +0000
committerbde <bde@FreeBSD.org>1998-08-16 01:21:52 +0000
commit9e27b29fba08158ea646560dc2c0f671e17923cf (patch)
treeca50bac0920c7e526393546681e1b22c87541004 /sys/alpha
parente14b44bbf30df0b2ba5a4750b2c2806bcae489eb (diff)
downloadFreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.zip
FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.tar.gz
Use [u]intptr_t instead of [u_]long for casts between pointers and
integers. Don't forget to cast to (void *) as well.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/linux/linux_sysvec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c
index 850263f..67ed448 100644
--- a/sys/alpha/linux/linux_sysvec.c
+++ b/sys/alpha/linux/linux_sysvec.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_sysvec.c,v 1.30 1998/06/07 17:11:27 dfr Exp $
+ * $Id: linux_sysvec.c,v 1.31 1998/07/29 16:43:00 bde Exp $
*/
/* XXX we use functions that might not exist. */
@@ -126,11 +126,11 @@ linux_fixup(long **stack_base, struct image_params *imgp)
argv = *stack_base;
envp = *stack_base + (imgp->argc + 1);
(*stack_base)--;
- **stack_base = (long)envp;
+ **stack_base = (intptr_t)(void *)envp;
(*stack_base)--;
- **stack_base = (long)argv;
+ **stack_base = (intptr_t)(void *)argv;
(*stack_base)--;
- **stack_base = (long)imgp->argc;
+ **stack_base = imgp->argc;
return 0;
}
OpenPOWER on IntegriCloud