mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
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>
This commit is contained in:
parent
311c19ccb5
commit
91b469c95f
1 changed files with 3 additions and 0 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue