]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
pppd: Remove unused rcsid variables
[ppp.git] / pppd / main.c
index f1986ed68d0b7e4d00f81b956e2abbb263b79d7a..b0d772bba8b86d5da4a9179f5440e17211c970ab 100644 (file)
 #include "atcp.h"
 #endif
 
-static const char rcsid[] = RCSID;
 
 /* interface vars */
 char ifname[MAXIFNAMELEN];     /* Interface name */
@@ -257,7 +256,6 @@ static void cleanup_db __P((void));
 static void handle_events __P((void));
 void print_link_stats __P((void));
 
-extern char    *ttyname __P((int));
 extern char    *getlogin __P((void));
 int main __P((int, char *[]));
 
@@ -1752,7 +1750,7 @@ update_script_environment()
                script_env[i] = newstring;
            else
                add_script_env(i, newstring);
-       } else {
+       } else if (p != NULL) {
            remove_script_env(i);
        }
     }