]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/session.c
Convert to ANSI C
[ppp.git] / pppd / session.c
index 473e51e1912f63074eb7c1d058a601f17fc2749e..2f1c83e5552cd3afd59813e82d6b8bdf3de6294b 100644 (file)
@@ -116,10 +116,7 @@ static pam_handle_t *pamh = NULL;
  */
 
 static int conversation (int num_msg,
-#ifndef SOL2
-    const
-#endif
-    struct pam_message **msg,
+    const struct pam_message **msg,
     struct pam_response **resp, void *appdata_ptr)
 {
     int replies = 0;
@@ -164,12 +161,7 @@ static struct pam_conv pam_conv_data = {
 #endif /* #ifdef USE_PAM */
 
 int
-session_start(flags, user, passwd, ttyName, msg)
-    const int flags;
-    const char *user;
-    const char *passwd;
-    const char *ttyName;
-    char **msg;
+session_start(const int flags, const char *user, const char *passwd, const char *ttyName, char **msg)
 {
 #ifdef USE_PAM
     bool ok = 1;