aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 03:13:06 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 03:13:06 +0800
commit00d1f0d7a9230eee91e1046abcb7307b8cc93277 (patch)
treea08741dd7b0863e54a7d69222baeb3d5c1cc1d20
parentcaecc9ad80aa4a1f8784417f9b77a8e73a995c73 (diff)
osmocore: Build a against the latest version..
-rw-r--r--openbsc/configure.in2
-rw-r--r--openbsc/src/vty_interface_layer3.c27
2 files changed, 1 insertions, 28 deletions
diff --git a/openbsc/configure.in b/openbsc/configure.in
index a59e67cd4..b5432c450 100644
--- a/openbsc/configure.in
+++ b/openbsc/configure.in
@@ -15,7 +15,7 @@ dnl checks for libraries
AC_SEARCH_LIBS(crypt, crypt,
[LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
-PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.1.11)
+PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.1.15)
dnl checks for header files
AC_HEADER_STDC
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index fee5baee5..27e0560b0 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -73,33 +73,6 @@ static struct buffer *argv_to_buffer(int argc, const char *argv[], int base)
return b;
}
-static int hexparse(const char *str, u_int8_t *b, int max_len)
-
-{
- int i, l, v;
-
- l = strlen(str);
- if ((l&1) || ((l>>1) > max_len))
- return -1;
-
- memset(b, 0x00, max_len);
-
- for (i=0; i<l; i++) {
- char c = str[i];
- if (c >= '0' && c <= '9')
- v = c - '0';
- else if (c >= 'a' && c <= 'f')
- v = 10 + (c - 'a');
- else if (c >= 'A' && c <= 'F')
- v = 10 + (c - 'a');
- else
- return -1;
- b[i>>1] |= v << (i&1 ? 0 : 4);
- }
-
- return i>>1;
-}
-
/* per-subscriber configuration */
DEFUN(cfg_subscr,
cfg_subscr_cmd,