diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-09-02 04:18:55 -0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-10-04 22:25:20 -0700 |
commit | 91b469c95faf92435e3d5d78292ba78075a3c5ca (patch) | |
tree | 10275a6a2da523d6b244ea269b30952a3c3cb3f4 | |
parent | 311c19ccb5783a1de71fd5042eeadfbe9688f597 (diff) | |
download | u-boot-imx-91b469c95faf92435e3d5d78292ba78075a3c5ca.zip u-boot-imx-91b469c95faf92435e3d5d78292ba78075a3c5ca.tar.gz u-boot-imx-91b469c95faf92435e3d5d78292ba78075a3c5ca.tar.bz2 |
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 <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
-rw-r--r-- | 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__ */ |