CONTRIB: merge ip6range with iprange

No need to have two separate sub-projects doing the same thing, let's
merge them.
This commit is contained in:
Willy Tarreau 2021-04-02 14:33:40 +02:00
parent 21ef8b9064
commit 6a6dabe668
3 changed files with 4 additions and 16 deletions

View File

@ -1,13 +0,0 @@
CC = gcc
OPTIMIZE = -O3
LDFLAGS = -s
OBJS = ip6range
all: $(OBJS)
%: %.c
$(CC) $(LDFLAGS) $(OPTIMIZE) -o $@ $^
clean:
rm -f $(OBJS) *.o *.a *~

View File

@ -1,8 +1,8 @@
CC = gcc
CC = cc
OPTIMIZE = -O3
LDFLAGS = -s
OBJS = iprange
OBJS = iprange ip6range
all: $(OBJS)

View File

@ -314,7 +314,7 @@ static void usage(const char *argv0)
"\n", argv0);
}
main(int argc, char **argv)
int main(int argc, char **argv)
{
char line[MAXLINE];
int l, lnum;
@ -393,4 +393,5 @@ main(int argc, char **argv)
convert_range(&sa, &da, he, NULL);
}
}
return 0;
}