summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-01-13 08:43:24 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-01-13 08:43:24 +0000
commite2e212b53eb068dbd84c1a545c376c8976da6831 (patch)
treed3f7383265826ceca8881c3f9fa098f45af81af7
parentb3e94fa9ff8d571173f15b41c3660cb5de143abd (diff)
Missing cast. From deraadt@
-rw-r--r--usr.bin/bc/bc.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y
index 5d1cf79bc2b..9eca038f04b 100644
--- a/usr.bin/bc/bc.y
+++ b/usr.bin/bc/bc.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: bc.y,v 1.21 2003/12/19 19:24:22 otto Exp $ */
+/* $OpenBSD: bc.y,v 1.22 2004/01/13 08:43:23 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -31,7 +31,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: bc.y,v 1.21 2003/12/19 19:24:22 otto Exp $";
+static const char rcsid[] = "$OpenBSD: bc.y,v 1.22 2004/01/13 08:43:23 otto Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -859,7 +859,7 @@ lookup(char * str, size_t len, char type)
p[2] = ENCODE(num % VAR_BASE + 1);
p[3] = '\0';
- entry.data = p;
+ entry.data = (char *)p;
entry.key = strdup(str);
if (entry.key == NULL)
err(1, NULL);