Hi

pretty_print_option: Removed in options.c in revision 1.4
parse_timestamp: Removed in confpars.c in revision 1.13
tree_host_lookup: Removed in tree.c in revision 1.11
enter_dns_host: Removed in tree.c in revision 1.11
getLong: Removed in convert.c in revision 1.4
getShort: Removes in convert.c in revision 1.4

So I think they can be removed in dhcpd.h as well. No warnings when
compiling.

Best,

Martin

Index: dhcpd.h
===================================================================
RCS file: /cvs/src/usr.sbin/dhcpd/dhcpd.h,v
retrieving revision 1.67
diff -u -p -r1.67 dhcpd.h
--- dhcpd.h     8 May 2019 22:00:55 -0000       1.67
+++ dhcpd.h     7 Nov 2020 09:07:18 -0000
@@ -311,7 +311,6 @@ void         parse_options(struct packet *);
 void    parse_option_buffer(struct packet *, unsigned char *, int);
 int     cons_options(struct packet *, struct dhcp_packet *, int,
            struct tree_cache **, int, int, int, u_int8_t *, int);
-char   *pretty_print_option(unsigned int, unsigned char *, int, int, int);
 void    do_packet(struct interface_info *, struct dhcp_packet *, int,
            unsigned int, struct iaddr, struct hardware *);
 
@@ -364,7 +363,6 @@ char        *parse_string(FILE *);
 struct tree            *parse_ip_addr_or_hostname(FILE *, int);
 struct tree_cache      *parse_fixed_addr_param(FILE *);
 void                    parse_option_param(FILE *, struct group *);
-time_t                  parse_timestamp(FILE *);
 struct lease           *parse_lease_declaration(FILE *);
 void                    parse_address_range(FILE *, struct subnet *);
 time_t                  parse_date(FILE *);
@@ -376,8 +374,6 @@ struct tree         *parse_domain_and_comp(FILE
 /* tree.c */
 pair                    cons(caddr_t, pair);
 struct tree_cache      *tree_cache(struct tree *);
-struct tree            *tree_host_lookup(char *);
-struct dns_host_entry  *enter_dns_host(char *);
 struct tree            *tree_const(unsigned char *, int);
 struct tree            *tree_concat(struct tree *, struct tree *);
 struct tree            *tree_limit(struct tree *, int);
@@ -476,9 +472,7 @@ void initialize_universes(void);
 
 /* convert.c */
 u_int32_t getULong(unsigned char *);
-int32_t getLong(unsigned char *);
 u_int16_t getUShort(unsigned char *);
-int16_t getShort(unsigned char *);
 void putULong(unsigned char *, u_int32_t);
 void putLong(unsigned char *, int32_t);
 void putUShort(unsigned char *, unsigned int);

Reply via email to