diff mbox

[iproute2] utils: add missing return value

Message ID 1439516180-19076-1-git-send-email-zhangshengju@cmss.chinamobile.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Zhang Shengju Aug. 14, 2015, 1:36 a.m. UTC
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(-)

Comments

Stephen Hemminger Aug. 14, 2015, 2:42 a.m. UTC | #1
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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)
 {