fix various 64-bitness bugs.

This commit is contained in:
cgd 1997-02-03 19:56:03 +00:00
parent e09497929c
commit 65a65d45b2
5 changed files with 12 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_examine.c,v 1.11 1996/03/30 22:30:07 christos Exp $ */
/* $NetBSD: db_examine.c,v 1.12 1997/02/03 19:56:03 cgd Exp $ */
/*
* Mach Operating System
@ -261,7 +261,7 @@ db_search_cmd(daddr, have_addr, dcount, modif)
int size;
db_expr_t value;
db_expr_t mask;
unsigned int count;
db_expr_t count;
t = db_read_token();
if (t == tSLASH) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_expr.c,v 1.5 1996/02/05 01:56:58 christos Exp $ */
/* $NetBSD: db_expr.c,v 1.6 1997/02/03 19:56:04 cgd Exp $ */
/*
* Mach Operating System
@ -212,7 +212,7 @@ db_shift_expr(valuep)
lhs <<= rhs;
else {
/* Shift right is unsigned */
lhs = (unsigned) lhs >> rhs;
lhs = (unsigned long) lhs >> rhs;
}
t = db_read_token();
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_lex.c,v 1.8 1996/02/05 01:57:05 christos Exp $ */
/* $NetBSD: db_lex.c,v 1.9 1997/02/03 19:56:05 cgd Exp $ */
/*
* Mach Operating System
@ -137,7 +137,7 @@ db_lex()
if (c >= '0' && c <= '9') {
/* number */
int r, digit = 0;
db_expr_t r, digit = 0;
if (c > '0')
r = db_radix;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_lex.h,v 1.7 1996/02/05 01:57:07 christos Exp $ */
/* $NetBSD: db_lex.h,v 1.8 1997/02/03 19:56:06 cgd Exp $ */
/*
* Mach Operating System
@ -41,7 +41,7 @@ int db_read_token __P((void));
void db_flush_lex __P((void));
int db_lex __P((void));
int db_tok_number;
db_expr_t db_tok_number;
#define TOK_STRING_SIZE 120
char db_tok_string[TOK_STRING_SIZE];
int db_radix;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_variables.c,v 1.9 1997/01/09 05:37:02 thorpej Exp $ */
/* $NetBSD: db_variables.c,v 1.10 1997/02/03 19:56:07 cgd Exp $ */
/*
* Mach Operating System
@ -48,7 +48,7 @@
#endif
int db_onpanic = DDB_ONPANIC;
extern unsigned int db_maxoff;
extern unsigned int db_maxoff;
extern int db_radix;
extern int db_max_width;
@ -57,7 +57,7 @@ extern int db_max_line;
struct db_variable db_vars[] = {
{ "radix", &db_radix, FCN_NULL },
{ "maxoff", (int *)&db_maxoff, FCN_NULL },
{ "maxoff", &db_maxoff, FCN_NULL },
{ "maxwidth", &db_max_width, FCN_NULL },
{ "tabstops", &db_tab_stop_width, FCN_NULL },
{ "lines", &db_max_line, FCN_NULL },
@ -88,8 +88,7 @@ ddb_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
return (sysctl_int(oldp, oldlenp, newp, newlen, &db_radix));
case DDBCTL_MAXOFF:
return (sysctl_int(oldp, oldlenp, newp, newlen,
(int *)db_maxoff));
return (sysctl_int(oldp, oldlenp, newp, newlen, &db_maxoff));
case DDBCTL_MAXWIDTH:
return (sysctl_int(oldp, oldlenp, newp, newlen,