aboutsummaryrefslogtreecommitdiffstats
path: root/util/szap/lnb.c
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2013-09-03 09:48:52 +0200
committeretobi <git@e-tobi.net>2013-09-03 09:48:52 +0200
commit5501530a778ad588a8ccd3f1584ea58f74c0cec9 (patch)
tree125c0eb7951f4b97c6b2be809332dcbe3633083c /util/szap/lnb.c
parent76c08672bc6c2984ebd7045a71862099890c9118 (diff)
downloadlinux-dvb-apps-5501530a778ad588a8ccd3f1584ea58f74c0cec9.tar.gz
Imported Upstream version 1.1.1+rev1483upstream/1.1.1+rev1483
Diffstat (limited to 'util/szap/lnb.c')
-rw-r--r--util/szap/lnb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/util/szap/lnb.c b/util/szap/lnb.c
index 9052d1c..3202da1 100644
--- a/util/szap/lnb.c
+++ b/util/szap/lnb.c
@@ -44,8 +44,7 @@ static struct lnb_types_st lnbs[] = {
* Increment curno each time
*/
-struct lnb_types_st *
-lnb_enum(int curno)
+struct lnb_types_st *lnb_enum(int curno)
{
if (curno >= (int) (sizeof(lnbs) / sizeof(lnbs[0])))
return (struct lnb_types_st *)NULL;
@@ -57,16 +56,16 @@ lnb_enum(int curno)
* otherwise low[,high[,switch]]
*/
-int
-lnb_decode(char *str, struct lnb_types_st *lnbp)
+int lnb_decode(char *str, struct lnb_types_st *lnbp)
{
-int i;
-char *cp, *np;
+ int i;
+ char *cp, *np;
memset(lnbp, 0, sizeof(*lnbp));
cp = str;
while(*cp && isspace(*cp))
cp++;
+
if (isalpha(*cp)) {
for (i = 0; i < (int)(sizeof(lnbs) / sizeof(lnbs[0])); i++) {
if (!strcasecmp(lnbs[i].name, cp)) {