From f1d925d9c39628d346b3809408695cd5c8b8faa2 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Wed, 20 May 2020 13:31:41 +0300 Subject: net: move random_port() to dns The random_port() routine is not used anywhere else. Make it local to dns.c to reduce code clutter, and shrink generated code a little. Signed-off-by: Baruch Siach --- include/net.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/net.h b/include/net.h index 00a8ec0..1bf9867 100644 --- a/include/net.h +++ b/include/net.h @@ -897,9 +897,6 @@ int is_serverip_in_cmd(void); */ int net_parse_bootfile(struct in_addr *ipaddr, char *filename, int max_len); -/* get a random source port */ -unsigned int random_port(void); - /** * update_tftp - Update firmware over TFTP (via DFU) * -- cgit v1.1