diff options
author | Mark Purcell <msp@debian.org> | 2008-06-22 11:00:40 +1000 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:42 +0200 |
commit | 891c51ff368ed700dec6025eeb47ce4d96f76418 (patch) | |
tree | 3729664829e4faa691d403274f38eb10890b533c /util/lib | |
parent | 1c6e1f28f54ec2606c23936c1d8689f2be55a86c (diff) | |
parent | ab959d7b4194715870128e616b8e29d4a101e488 (diff) | |
download | linux-dvb-apps-debian/1.1.1+rev1207-1.tar.gz |
Imported Debian patch 1.1.1+rev1207-1debian/1.1.1+rev1207-1
Diffstat (limited to '')
-rw-r--r-- | test/lnb.c (renamed from util/lib/lnb.c) | 6 | ||||
-rw-r--r-- | test/lnb.h (renamed from util/lib/lnb.h) | 2 | ||||
-rw-r--r-- | util/lib/Makefile | 20 |
3 files changed, 3 insertions, 25 deletions
diff --git a/util/lib/lnb.c b/test/lnb.c index d082181..9052d1c 100644 --- a/util/lib/lnb.c +++ b/test/lnb.c @@ -12,7 +12,7 @@ static char *univ_desc[] = { static char *dbs_desc[] = { "Expressvu, North America", "12200 to 12700 MHz", - "Single LO, 11250 MHz", + "Single LO, 11250 MHz", (char *)NULL }; static char *standard_desc[] = { @@ -47,7 +47,7 @@ static struct lnb_types_st lnbs[] = { struct lnb_types_st * lnb_enum(int curno) { - if (curno >= sizeof(lnbs) / sizeof(lnbs[0])) + if (curno >= (int) (sizeof(lnbs) / sizeof(lnbs[0]))) return (struct lnb_types_st *)NULL; return &lnbs[curno]; } @@ -68,7 +68,7 @@ char *cp, *np; while(*cp && isspace(*cp)) cp++; if (isalpha(*cp)) { - for(i = 0; i < (sizeof(lnbs) / sizeof(lnbs[0])); i++) { + for (i = 0; i < (int)(sizeof(lnbs) / sizeof(lnbs[0])); i++) { if (!strcasecmp(lnbs[i].name, cp)) { *lnbp = lnbs[i]; return 1; diff --git a/util/lib/lnb.h b/test/lnb.h index f78b7a6..6370fd4 100644 --- a/util/lib/lnb.h +++ b/test/lnb.h @@ -1,4 +1,3 @@ - struct lnb_types_st { char *name; char **desc; @@ -21,4 +20,3 @@ lnb_enum(int curno); int lnb_decode(char *str, struct lnb_types_st *lnbp); - diff --git a/util/lib/Makefile b/util/lib/Makefile deleted file mode 100644 index 5f55636..0000000 --- a/util/lib/Makefile +++ /dev/null @@ -1,20 +0,0 @@ - -CC = gcc -CFLAGS = -MD -g -Wall -O2 -I../../include -I. -LFLAGS = -g -Wall - -OBJS = lnb.o -SRCS = $(OBJS:.o=.c) - -TARGET = lnb.o - -$(TARGET): $(SRCS) - -.c.o: - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - $(RM) *.o *.d $(TARGET) - --include $(wildcard *.d) dummy - |