Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2] utils: add missing return value
@ 2015-08-14  1:36 Zhang Shengju
  2015-08-14  2:42 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Shengju @ 2015-08-14  1:36 UTC (permalink / raw)
  To: netdev

Add missing return value to fix warnings

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
---
 include/utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/utils.h b/include/utils.h
index 95d162c..0c57ccd 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -137,7 +137,7 @@ const char *mpls_ntop(int af, const void *addr, char *str, size_t len);
 int mpls_pton(int af, const char *src, void *addr);
 
 extern int __iproute2_hz_internal;
-__get_hz(void);
+int __get_hz(void);
 
 static __inline__ int get_hz(void)
 {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2] utils: add missing return value
  2015-08-14  1:36 [PATCH iproute2] utils: add missing return value Zhang Shengju
@ 2015-08-14  2:42 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2015-08-14  2:42 UTC (permalink / raw)
  To: Zhang Shengju; +Cc: netdev

On Fri, 14 Aug 2015 01:36:20 +0000
Zhang Shengju <zhangshengju@cmss.chinamobile.com> wrote:

> Add missing return value to fix warnings
> 
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
> ---
>  include/utils.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/utils.h b/include/utils.h
> index 95d162c..0c57ccd 100644
> --- a/include/utils.h
> +++ b/include/utils.h
> @@ -137,7 +137,7 @@ const char *mpls_ntop(int af, const void *addr, char *str, size_t len);
>  int mpls_pton(int af, const char *src, void *addr);
>  
>  extern int __iproute2_hz_internal;
> -__get_hz(void);
> +int __get_hz(void);
>  
>  static __inline__ int get_hz(void)
>  {

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-14  2:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14  1:36 [PATCH iproute2] utils: add missing return value Zhang Shengju
2015-08-14  2:42 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox