PPP, SERVER: statically define our name for authentication purposes

We don't need that in RAM nor a pointer to a string, a static
define is fine for embedded devices, saved ~257 bytes of RAM.
This commit is contained in:
Sylvain Rochet
2015-02-28 18:28:07 +01:00
parent 708e421ec3
commit 3686110ed2
3 changed files with 7 additions and 5 deletions

View File

@@ -242,9 +242,6 @@ typedef struct ppp_settings_s {
/* auth data */
const char *user; /* Username for PAP */
const char *passwd; /* Password for PAP, secret for CHAP */
#if PPP_SERVER
char our_name [MAXNAMELEN + 1]; /* Our name for authentication purposes */
#endif /* PPP_SERVER */
#if PPP_REMOTENAME
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */
#endif /* PPP_REMOTENAME */