summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-07-06 16:45:21 +0000
committerniklas <niklas@openbsd.org>1997-07-06 16:45:21 +0000
commit1bc2ec2bd6950e480021f8149a3b3bb795a6b7e6 (patch)
tree7104d79abac5697e8f586f3d9f3cde33654f16e3
parentStyle nits + provide getreg_val proto conditionally. Removed unused var. (diff)
downloadwireguard-openbsd-1bc2ec2bd6950e480021f8149a3b3bb795a6b7e6.tar.xz
wireguard-openbsd-1bc2ec2bd6950e480021f8149a3b3bb795a6b7e6.zip
A number should be db_expr_t
-rw-r--r--sys/ddb/db_expr.c4
-rw-r--r--sys/ddb/db_lex.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c
index 64d38e35997..317110fe9db 100644
--- a/sys/ddb/db_expr.c
+++ b/sys/ddb/db_expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_expr.c,v 1.4 1996/04/21 22:19:00 deraadt Exp $ */
+/* $OpenBSD: db_expr.c,v 1.5 1997/07/06 16:45:21 niklas Exp $ */
/* $NetBSD: db_expr.c,v 1.5 1996/02/05 01:56:58 christos Exp $ */
/*
@@ -57,7 +57,7 @@ db_term(valuep)
return (TRUE);
}
if (t == tNUMBER) {
- *valuep = (db_expr_t)db_tok_number;
+ *valuep = db_tok_number;
return (TRUE);
}
if (t == tDOT) {
diff --git a/sys/ddb/db_lex.h b/sys/ddb/db_lex.h
index afd6fcb2fec..bce47ef35f8 100644
--- a/sys/ddb/db_lex.h
+++ b/sys/ddb/db_lex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_lex.h,v 1.4 1996/04/21 22:19:04 deraadt Exp $ */
+/* $OpenBSD: db_lex.h,v 1.5 1997/07/06 16:45:21 niklas Exp $ */
/* $NetBSD: db_lex.h,v 1.7 1996/02/05 01:57:07 christos Exp $ */
/*
@@ -42,7 +42,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;