diff options
author | David Gibson <dgibson@sneetch.(none)> | 2005-08-29 12:48:02 +1000 |
---|---|---|
committer | David Gibson <dgibson@sneetch.(none)> | 2005-08-29 12:48:02 +1000 |
commit | 230f253e9b187efd67787f98639aadb15916d0e9 (patch) | |
tree | c3dee4bb09777d1aa3abf0a7897a733747cd8e85 /data.c | |
parent | 41916138dddbae54e4153d11db10fd7695633d27 (diff) | |
download | dtc-230f253e9b187efd67787f98639aadb15916d0e9.tar.gz |
Remove an unused function, mark a bunch of other functions and variables
as static. Mostly found by sparse.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -101,21 +101,7 @@ struct data data_copy_mem(char *mem, int len) return d; } -char hexval(char c) -{ - switch (c) { - case '0' ... '9': - return c - '0'; - case 'a' ... 'f': - return c - 'a'; - case 'A' ... 'F': - return c - 'A'; - default: - assert(0); - } -} - -char get_oct_char(char *s, int *i) +static char get_oct_char(char *s, int *i) { char x[4]; char *endx; @@ -137,7 +123,7 @@ char get_oct_char(char *s, int *i) return val; } -char get_hex_char(char *s, int *i) +static char get_hex_char(char *s, int *i) { char x[3]; char *endx; |