[Crosstoolchain-logs] [device-tree-compiler] 258/357: dtc: Make eval_literal() static
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 6b8e05626a0011fd235dcbd9ccd44fd731a414c0
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Wed Mar 5 11:47:54 2008 +1100
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 at gibson.dropbear.id.au>
---
dtc-parser.y | 6 +++---
1 file 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list