diff options
Diffstat (limited to 'fastbootd/config.c')
-rw-r--r-- | fastbootd/config.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/fastbootd/config.c b/fastbootd/config.c index b8503fd..fe6da69 100644 --- a/fastbootd/config.c +++ b/fastbootd/config.c @@ -35,29 +35,13 @@ #include <sys/types.h> #include "protocol.h" +#include "utils.h" #include "debug.h" // TODO: change config path #define CONFIG_PATH "/data/fastboot.cfg" -static char *strip(char *str) -{ - int n; - - n = strspn(str, " \t"); - str += n; - - for (n = strlen(str) - 1; n >= 0; n--) { - if (str[n] == ' ' || str[n] == '\t') - str[n] = '\0'; - else - break; - } - - return str; -} - static int config_parse_line(char *line) { char *c; |