mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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:
parent
21ef8b9064
commit
6a6dabe668
@ -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 *~
|
|
@ -1,8 +1,8 @@
|
|||||||
CC = gcc
|
CC = cc
|
||||||
OPTIMIZE = -O3
|
OPTIMIZE = -O3
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
|
|
||||||
OBJS = iprange
|
OBJS = iprange ip6range
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ static void usage(const char *argv0)
|
|||||||
"\n", argv0);
|
"\n", argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char line[MAXLINE];
|
char line[MAXLINE];
|
||||||
int l, lnum;
|
int l, lnum;
|
||||||
@ -393,4 +393,5 @@ main(int argc, char **argv)
|
|||||||
convert_range(&sa, &da, he, NULL);
|
convert_range(&sa, &da, he, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user