[rtems commit] pppd: Fix warnings

Sebastian Huber sebh at rtems.org
Mon Apr 25 06:10:56 UTC 2016


Module:    rtems
Branch:    master
Commit:    163d1e8c247260eb1d40dcb463f3acff47d7c8d0
Changeset: http://git.rtems.org/rtems/commit/?id=163d1e8c247260eb1d40dcb463f3acff47d7c8d0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr 25 07:59:34 2016 +0200

pppd: Fix warnings

---

 cpukit/pppd/chat.c      | 2 +-
 cpukit/pppd/rtemsmain.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/pppd/chat.c b/cpukit/pppd/chat.c
index 45e2707..6eeec97 100644
--- a/cpukit/pppd/chat.c
+++ b/cpukit/pppd/chat.c
@@ -218,7 +218,7 @@ void *copy_of(
     return dup_mem(s, strlen (s) + 1);
 }
 
-char *getnextcommand(char *string,char *buff)
+static char *getnextcommand(char *string,char *buff)
 {
 	char *token;
 	int len;
diff --git a/cpukit/pppd/rtemsmain.c b/cpukit/pppd/rtemsmain.c
index 030bebe..f5cddec 100644
--- a/cpukit/pppd/rtemsmain.c
+++ b/cpukit/pppd/rtemsmain.c
@@ -552,7 +552,7 @@ struct protocol_list {
 /*
  * protocol_name - find a name for a PPP protocol.
  */
-const char *
+static const char *
 protocol_name(
     int proto)
 {




More information about the vc mailing list