[U-Boot] [PATCH] net: add random_port() prototype
Ben Warren
biggerbadderben at gmail.com
Fri Sep 11 01:00:10 CEST 2009
Mike Frysinger wrote:
> The random_port() is meant to be used by other net code, but without a
> prototype, we get fun warnings like:
> dns.c: In function 'DnsSend':
> dns.c:89: warning: implicit declaration of function 'random_port'
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> include/net.h | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/include/net.h b/include/net.h
> index 4873000..1c8ab12 100644
> --- a/include/net.h
> +++ b/include/net.h
> @@ -517,6 +517,9 @@ extern ushort getenv_VLAN(char *);
> /* copy a filename (allow for "..." notation, limit length) */
> extern void copy_filename (char *dst, char *src, int size);
>
> +/* get a random source port */
> +extern unsigned int random_port(void);
> +
> /**********************************************************************/
>
> #endif /* __NET_H__ */
>
Applied to net repo.
thanks,
Ben
More information about the U-Boot
mailing list