summaryrefslogtreecommitdiff
path: root/tc.alloc.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-10-08 18:20:02 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-10-08 18:20:02 +0000
commit320f2946781af5deaf568d19136cf96fe2c436dd (patch)
tree355c6156ea44fef5f9233dbbf7b8ecae06287ee7 /tc.alloc.c
parent48eb25df687d51c9bdb4677c72e08ed3fde1b186 (diff)
Notes
Diffstat (limited to 'tc.alloc.c')
-rw-r--r--tc.alloc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tc.alloc.c b/tc.alloc.c
index fec726d7bde5..8914ba575d0c 100644
--- a/tc.alloc.c
+++ b/tc.alloc.c
@@ -1,4 +1,3 @@
-/* $Header: /p/tcsh/cvsroot/tcsh/tc.alloc.c,v 3.56 2016/03/08 12:47:43 christos Exp $ */
/*
* tc.alloc.c (Caltech) 2/21/82
* Chris Kingsley, kingsley@cit-20.
@@ -46,8 +45,6 @@
#define USE_SBRK
#endif
-RCSID("$tcsh: tc.alloc.c,v 3.56 2016/03/08 12:47:43 christos Exp $")
-
#define RCHECK
#define DEBUG
@@ -234,7 +231,7 @@ malloc(size_t nbytes)
/*
* Record allocated size of block and bound space with magic numbers.
*/
- p->ov_size = (p->ov_index <= 13) ? nbytes - 1 : 0;
+ p->ov_size = (p->ov_index <= 13) ? (U_short)nbytes - 1 : 0;
p->ov_rmagic = RMAGIC;
*((U_int *) (((caddr_t) p) + nbytes - RSLOP)) = RMAGIC;
#endif
@@ -426,7 +423,7 @@ realloc(ptr_t cp, size_t nbytes)
nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead))+nbytes+RSLOP);
*((U_int *) (((caddr_t) op) + nbytes - RSLOP)) = RMAGIC;
op->ov_rmagic = RMAGIC;
- op->ov_size = (op->ov_index <= 13) ? nbytes - 1 : 0;
+ op->ov_size = (op->ov_index <= 13) ? (U_short)nbytes - 1 : 0;
#endif
return ((memalign_t) cp);
}