From: Mike Frysinger Date: Wed, 2 Sep 2009 08:18:55 +0000 (-0400) Subject: net: add random_port() prototype X-Git-Tag: v2009.11-rc1~77 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91b469c95faf92435e3d5d78292ba78075a3c5ca;p=u-boot net: add random_port() prototype 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 Signed-off-by: Ben Warren --- diff --git a/include/net.h b/include/net.h index 4873000c0d..1c8ab12454 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__ */