source:
freewrt/package/dhcp6/patches/01-remove_debug.patch@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 3.8 KB | |
-
dhcp6-1.0/client/Makefile
diff -urN orig/dhcp6-1.0/client/Makefile dhcp6-1.0/client/Makefile
old new 1 2 CC = gcc3 1 STD_HEADERS = stdhead.h head.h struct.h options_type.h message_type.h states.h timer_val.h constants.h macros.h status_codes.h 4 2 OBJECT_FILES = client.o solicit.o clilib.o parse.o request.o decline.o renew.o rebind.o release.o 5 3 HEADER_FILES = solicit.h clilib.h parse.h request.h decline.h renew.h rebind.h release.h 6 4 IFLAGS = -I$(STAGING_DIR)/usr/include 7 5 8 6 dhcpv6_client : dhcpv6_client.c cli 9 $(CC) -g3dhcpv6_client.c -o dhcpv6_client7 $(CC) $(IFLAGS) dhcpv6_client.c -o dhcpv6_client 10 8 11 9 cli : $(OBJECT_FILES) 12 $(CC) -g3 $(OBJECT_FILES) -o cli-lncurses10 $(CC) $(IFLAGS) $(OBJECT_FILES) -o cli -L$(STAGING_DIR)/usr/lib -lncurses 13 11 14 12 client.o : client.c $(STD_HEADERS) $(HEADER_FILES) 15 $(CC) -g3-c client.c -o client.o13 $(CC) $(IFLAGS) -c client.c -o client.o 16 14 17 15 release.o : release.c release.h clilib.h 18 $(CC) -g3-c release.c -o release.o16 $(CC) $(IFLAGS) -c release.c -o release.o 19 17 20 18 rebind.o : rebind.c rebind.h clilib.h 21 $(CC) -g3-c rebind.c -o rebind.o19 $(CC) $(IFLAGS) -c rebind.c -o rebind.o 22 20 23 21 renew.o : renew.c renew.h clilib.h 24 $(CC) -g3-c renew.c -o renew.o22 $(CC) $(IFLAGS) -c renew.c -o renew.o 25 23 26 24 request.o : request.c request.h clilib.h 27 $(CC) -g3-c request.c -o request.o25 $(CC) $(IFLAGS) -c request.c -o request.o 28 26 29 27 decline.o : decline.c decline.h clilib.h parse.h solicit.h 30 $(CC) -g3-c decline.c -o decline.o28 $(CC) $(IFLAGS) -c decline.c -o decline.o 31 29 32 30 solicit.o : solicit.c solicit.h clilib.h parse.h 33 $(CC) -g3-c solicit.c -o solicit.o31 $(CC) $(IFLAGS) -c solicit.c -o solicit.o 34 32 35 33 clilib.o : clilib.c clilib.h parse.h 36 $(CC) -g3-c clilib.c -o clilib.o34 $(CC) $(IFLAGS) -c clilib.c -o clilib.o 37 35 38 36 parse.o : parse.c parse.h clilib.h 39 $(CC) -g3-c parse.c -o parse.o37 $(CC) $(IFLAGS) -c parse.c -o parse.o 40 38 41 39 clean : 42 40 rm -f *.o cli dhcpv6_client -
dhcp6-1.0/client/clilib.c
diff -urN orig/dhcp6-1.0/client/clilib.c dhcp6-1.0/client/clilib.c
old new 554 554 555 555 void generate_trans_id (u_int32_t *trans_id) 556 556 { 557 extern u_int32_t g_trans_id;557 extern int g_trans_id; 558 558 time_t t; 559 559 srand (time (&t)); 560 560 *trans_id = 0; … … 890 890 break; 891 891 892 892 default : 893 #if DEBUG == 3894 893 printf ("Unrecognized DUID type\n"); 895 #endif896 894 } 897 895 898 896 next_opt = (struct OPTIONS *) malloc (sizeof (struct OPTIONS)); -
dhcp6-1.0/server/Makefile
diff -urN orig/dhcp6-1.0/server/Makefile dhcp6-1.0/server/Makefile
old new 1 CC = gcc2 1 STD_HEADERS = stdhead.h head.h struct.h options_type.h message_type.h macros.h status_codes.h constants.h 3 2 OBJECT_FILES = server.o lib.o advertise.o parse.o leases.o reply.o 4 3 5 4 serv: $(OBJECT_FILES) 6 $(CC) -g3$(OBJECT_FILES) -o serv5 $(CC) $(OBJECT_FILES) -o serv 7 6 8 7 lib.o: lib.c lib.h $(STD_HEADERS) 9 $(CC) - g3 -c lib.c -o lib.o8 $(CC) -c lib.c -o lib.o 10 9 11 10 parse.o: parse.c parse.h $(STD_HEADERS) 12 $(CC) - g3 -c parse.c -o parse.o11 $(CC) -c parse.c -o parse.o 13 12 14 13 leases.o: leases.c leases.h $(STD_HEADERS) 15 $(CC) - g3 -c leases.c -o leases.o14 $(CC) -c leases.c -o leases.o 16 15 17 16 advertise.o: advertise.c advertise.h $(STD_HEADERS) 18 $(CC) - g3 -c advertise.c -o advertise.o17 $(CC) -c advertise.c -o advertise.o 19 18 20 19 reply.o: reply.c reply.h $(STD_HEADERS) 21 $(CC) - g3 -c reply.c -o reply.o20 $(CC) -c reply.c -o reply.o 22 21 23 22 server.o: server.c lib.h advertise.h reply.h leases.h parse.h $(STD_HEADERS) 24 $(CC) - g3 -c server.c -o server.o23 $(CC) -c server.c -o server.o 25 24 26 25 clean: 27 26 rm -f *.o serv
Note:
See TracBrowser
for help on using the repository browser.
