diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:14 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:14 +0200 |
commit | b2c5310d4da56237571bb8ea8d24b030c941030f (patch) | |
tree | c2c39f8c1ebdad8c3e69af86cb3c105434212edd /lib/misc.c | |
parent | fda840672d0eb662ddf4c7080532fe2dfeb0b0b1 (diff) | |
download | barebox-b2c5310d4da56237571bb8ea8d24b030c941030f.tar.gz barebox-b2c5310d4da56237571bb8ea8d24b030c941030f.tar.xz |
svn_rev_653
restructure tree, add reginfo command
Diffstat (limited to 'lib/misc.c')
-rw-r--r-- | lib/misc.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/misc.c b/lib/misc.c index 5a7a72cd58..5ba9a0bbfa 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -1,36 +1,8 @@ #include <common.h> -#include <command.h> -#include <driver.h> -#include <init.h> #include <malloc.h> -#include <linux/ctype.h> #include <errno.h> #include <fs.h> -#include <net.h> - -int cmd_get_data_size(char* arg, int default_size) -{ - /* Check for a size specification .b, .w or .l. - */ - int len = strlen(arg); - if (len > 2 && arg[len-2] == '.') { - switch(arg[len-1]) { - case 'b': - return 1; - case 'w': - return 2; - case 'l': - return 4; - case 's': - return -2; - default: - return -1; - } - } - return default_size; -} - unsigned long strtoul_suffix(const char *str, char **endp, int base) { |