aboutsummaryrefslogtreecommitdiff
path: root/dtc-parser.y
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2008-03-05 11:47:54 +1100
committerJon Loeliger <jdl@loeliger.com>2008-03-23 08:00:33 -0500
commit6b8e05626a0011fd235dcbd9ccd44fd731a414c0 (patch)
treef676196bebcc37fb3f322553f05f134beebadcbc /dtc-parser.y
parentb2de518b80eb01b1004e137ff2435b03dc40018d (diff)
downloaddtc-6b8e05626a0011fd235dcbd9ccd44fd731a414c0.zip
dtc-6b8e05626a0011fd235dcbd9ccd44fd731a414c0.tar.gz
dtc-6b8e05626a0011fd235dcbd9ccd44fd731a414c0.tar.bz2
dtc: Make eval_literal() static
eval_literal() is used only in the parser, so make it a static function. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-parser.y')
-rw-r--r--dtc-parser.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/dtc-parser.y b/dtc-parser.y
index bae3c32..4ab1df9 100644
--- a/dtc-parser.y
+++ b/dtc-parser.y
@@ -24,12 +24,12 @@
#include "dtc.h"
#include "srcpos.h"
-int yylex(void);
-unsigned long long eval_literal(const char *s, int base, int bits);
+extern int yylex(void);
extern struct boot_info *the_boot_info;
extern int treesource_error;
+static unsigned long long eval_literal(const char *s, int base, int bits);
%}
%union {
@@ -330,7 +330,7 @@ void yyerror (char const *s)
yyerrorf("%s", s);
}
-unsigned long long eval_literal(const char *s, int base, int bits)
+static unsigned long long eval_literal(const char *s, int base, int bits)
{
unsigned long long val;
char *e;