source: freewrt/package/dhcp6/patches/01-remove_debug.patch@ 475ad56

freewrt_1_0 freewrt_2_0
Last change on this file since 475ad56 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
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 = gcc
    31STD_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
    42OBJECT_FILES = client.o solicit.o clilib.o parse.o request.o decline.o renew.o rebind.o release.o
    53HEADER_FILES = solicit.h clilib.h parse.h request.h decline.h renew.h rebind.h release.h
    6 
     4IFLAGS = -I$(STAGING_DIR)/usr/include
    75
    86dhcpv6_client : dhcpv6_client.c cli
    9         $(CC) -g3 dhcpv6_client.c -o dhcpv6_client
     7        $(CC) $(IFLAGS) dhcpv6_client.c -o dhcpv6_client
    108
    119cli : $(OBJECT_FILES)
    12         $(CC) -g3 $(OBJECT_FILES) -o cli -lncurses
     10        $(CC) $(IFLAGS) $(OBJECT_FILES) -o cli -L$(STAGING_DIR)/usr/lib -lncurses
    1311
    1412client.o : client.c $(STD_HEADERS) $(HEADER_FILES)
    15         $(CC) -g3 -c client.c -o client.o
     13        $(CC) $(IFLAGS) -c client.c -o client.o
    1614
    1715release.o : release.c release.h clilib.h
    18         $(CC) -g3 -c release.c -o release.o
     16        $(CC) $(IFLAGS) -c release.c -o release.o
    1917
    2018rebind.o : rebind.c rebind.h clilib.h
    21         $(CC) -g3 -c rebind.c -o rebind.o
     19        $(CC)  $(IFLAGS) -c rebind.c -o rebind.o
    2220
    2321renew.o : renew.c renew.h clilib.h
    24         $(CC) -g3 -c renew.c -o renew.o
     22        $(CC) $(IFLAGS) -c renew.c -o renew.o
    2523
    2624request.o : request.c request.h clilib.h
    27         $(CC) -g3 -c request.c -o request.o
     25        $(CC) $(IFLAGS) -c request.c -o request.o
    2826
    2927decline.o : decline.c decline.h clilib.h parse.h solicit.h
    30         $(CC) -g3 -c decline.c -o decline.o
     28        $(CC) $(IFLAGS) -c decline.c -o decline.o
    3129
    3230solicit.o : solicit.c solicit.h clilib.h parse.h
    33         $(CC) -g3 -c solicit.c -o solicit.o
     31        $(CC) $(IFLAGS) -c solicit.c -o solicit.o
    3432
    3533clilib.o : clilib.c clilib.h parse.h
    36         $(CC) -g3 -c clilib.c -o clilib.o
     34        $(CC) $(IFLAGS) -c clilib.c -o clilib.o
    3735
    3836parse.o : parse.c parse.h clilib.h
    39         $(CC) -g3 -c parse.c -o parse.o
     37        $(CC) $(IFLAGS) -c parse.c -o parse.o
    4038
    4139clean :
    4240        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  
    554554
    555555void generate_trans_id (u_int32_t *trans_id)
    556556{
    557     extern u_int32_t g_trans_id;
     557    extern int g_trans_id;
    558558    time_t t;
    559559    srand (time (&t));
    560560    *trans_id = 0;
     
    890890                    break;
    891891
    892892                default :
    893 #if DEBUG == 3
    894893                    printf ("Unrecognized DUID type\n");
    895 #endif
    896894            }
    897895
    898896            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 = gcc
    21STD_HEADERS = stdhead.h head.h struct.h options_type.h message_type.h macros.h status_codes.h constants.h
    32OBJECT_FILES = server.o lib.o advertise.o parse.o leases.o reply.o
    43
    54serv: $(OBJECT_FILES)
    6         $(CC) -g3 $(OBJECT_FILES) -o serv
     5        $(CC) $(OBJECT_FILES) -o serv
    76
    87lib.o: lib.c lib.h $(STD_HEADERS)
    9         $(CC) -g3 -c lib.c -o lib.o
     8        $(CC) -c lib.c -o lib.o
    109
    1110parse.o: parse.c parse.h $(STD_HEADERS)
    12         $(CC) -g3 -c parse.c -o parse.o
     11        $(CC) -c parse.c -o parse.o
    1312
    1413leases.o: leases.c leases.h $(STD_HEADERS)
    15         $(CC) -g3 -c leases.c -o leases.o
     14        $(CC) -c leases.c -o leases.o
    1615
    1716advertise.o: advertise.c advertise.h $(STD_HEADERS)
    18         $(CC) -g3 -c advertise.c -o advertise.o
     17        $(CC) -c advertise.c -o advertise.o
    1918
    2019reply.o: reply.c reply.h $(STD_HEADERS)
    21         $(CC) -g3 -c reply.c -o reply.o
     20        $(CC) -c reply.c -o reply.o
    2221
    2322server.o: server.c lib.h advertise.h reply.h leases.h parse.h $(STD_HEADERS)
    24         $(CC) -g3 -c server.c -o server.o
     23        $(CC) -c server.c -o server.o
    2524
    2625clean:
    2726        rm -f *.o serv
Note: See TracBrowser for help on using the repository browser.