[rtems commit] libnetworking: Fix the sethostname decl to match newlib.
Chris Johns
chrisj at rtems.org
Fri Oct 31 05:11:22 UTC 2014
Module: rtems
Branch: master
Commit: 7ae1c30cc8fffe4cff8408b6408fa650165d02d8
Changeset: http://git.rtems.org/rtems/commit/?id=7ae1c30cc8fffe4cff8408b6408fa650165d02d8
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Oct 31 16:20:02 2014 +1100
libnetworking: Fix the sethostname decl to match newlib.
---
cpukit/libnetworking/libc/res_config.h | 2 +-
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 2 +-
cpukit/libnetworking/rtems/sghostname.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/libnetworking/libc/res_config.h b/cpukit/libnetworking/libc/res_config.h
index 1657418..83bf217 100644
--- a/cpukit/libnetworking/libc/res_config.h
+++ b/cpukit/libnetworking/libc/res_config.h
@@ -11,6 +11,6 @@
u_int16_t _getshort(const u_char *src);
u_int32_t _getlong(const u_char *src);
int gethostname (char *name, size_t namelen);
-int sethostname (char *name, size_t namelen);
+int sethostname (const char *name, size_t namelen);
int issetugid (void);
#endif
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 567cc8a..865b644 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -188,7 +188,7 @@ extern char *rtems_bsdnet_domain_name;
/*
* Some extra prototypes
*/
-int sethostname (char *name, size_t namelen);
+int sethostname (const char *name, size_t namelen);
void domaininit (void *);
void ifinit (void *);
void ipintr (void);
diff --git a/cpukit/libnetworking/rtems/sghostname.c b/cpukit/libnetworking/rtems/sghostname.c
index 6935b5c..8ac5c58 100644
--- a/cpukit/libnetworking/rtems/sghostname.c
+++ b/cpukit/libnetworking/rtems/sghostname.c
@@ -28,7 +28,7 @@ gethostname (char *name, size_t namelen)
}
int
-sethostname (char *name, size_t namelen)
+sethostname (const char *name, size_t namelen)
{
char *old, *new;
More information about the vc
mailing list