public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: add random_port() prototype
Date: Thu, 10 Sep 2009 16:00:10 -0700	[thread overview]
Message-ID: <4AA984FA.6090707@gmail.com> (raw)
In-Reply-To: <1251879535-27153-1-git-send-email-vapier@gentoo.org>

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@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

      reply	other threads:[~2009-09-10 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02  8:18 [U-Boot] [PATCH] net: add random_port() prototype Mike Frysinger
2009-09-10 23:00 ` Ben Warren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AA984FA.6090707@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox