|
|
27639a |
diff -up pptp-1.7.2/pptp_callmgr.c.unused pptp-1.7.2/pptp_callmgr.c
|
|
|
27639a |
--- pptp-1.7.2/pptp_callmgr.c.unused 2011-12-01 09:58:47.127960697 +0000
|
|
|
27639a |
+++ pptp-1.7.2/pptp_callmgr.c 2011-12-01 09:58:47.149960723 +0000
|
|
|
27639a |
@@ -38,12 +38,12 @@ void close_unixsock(int fd, struct in_ad
|
|
|
27639a |
|
|
|
27639a |
sigjmp_buf callmgr_env;
|
|
|
27639a |
|
|
|
27639a |
-void callmgr_sighandler(int sig) {
|
|
|
27639a |
+void callmgr_sighandler(int sig __attribute__ ((unused))) {
|
|
|
27639a |
/* TODO: according to signal(2), siglongjmp() is unsafe used here */
|
|
|
27639a |
siglongjmp (callmgr_env, 1);
|
|
|
27639a |
}
|
|
|
27639a |
|
|
|
27639a |
-void callmgr_do_nothing(int sig) {
|
|
|
27639a |
+void callmgr_do_nothing(int sig __attribute__ ((unused))) {
|
|
|
27639a |
/* do nothing signal handler */
|
|
|
27639a |
}
|
|
|
27639a |
|
|
|
27639a |
@@ -104,7 +104,7 @@ void call_callback(PPTP_CONN *conn, PPTP
|
|
|
27639a |
*****************************************************************************/
|
|
|
27639a |
|
|
|
27639a |
/*** Call Manager *************************************************************/
|
|
|
27639a |
-int callmgr_main(int argc, char **argv, char **envp)
|
|
|
27639a |
+int callmgr_main(int argc, char **argv, char **envp __attribute__ ((unused)))
|
|
|
27639a |
{
|
|
|
27639a |
struct in_addr inetaddr;
|
|
|
27639a |
int inet_sock, unix_sock;
|
|
|
27639a |
@@ -377,7 +377,7 @@ int open_unixsock(struct in_addr inetadd
|
|
|
27639a |
}
|
|
|
27639a |
|
|
|
27639a |
/*** close_inetsock ***********************************************************/
|
|
|
27639a |
-void close_inetsock(int fd, struct in_addr inetaddr)
|
|
|
27639a |
+void close_inetsock(int fd, struct in_addr inetaddr __attribute__ ((unused)))
|
|
|
27639a |
{
|
|
|
27639a |
close(fd);
|
|
|
27639a |
}
|
|
|
27639a |
diff -up pptp-1.7.2/pptp.c.unused pptp-1.7.2/pptp.c
|
|
|
27639a |
--- pptp-1.7.2/pptp.c.unused 2011-12-01 09:58:47.143960715 +0000
|
|
|
27639a |
+++ pptp-1.7.2/pptp.c 2011-12-01 10:01:40.171147875 +0000
|
|
|
27639a |
@@ -151,13 +151,13 @@ void do_nothing(int sig)
|
|
|
27639a |
sigjmp_buf env;
|
|
|
27639a |
|
|
|
27639a |
/*** signal handler ***********************************************************/
|
|
|
27639a |
-void sighandler(int sig)
|
|
|
27639a |
+void sighandler(int sig __attribute__ ((unused)))
|
|
|
27639a |
{
|
|
|
27639a |
siglongjmp(env, 1);
|
|
|
27639a |
}
|
|
|
27639a |
|
|
|
27639a |
/*** report statistics signal handler (SIGUSR1) *******************************/
|
|
|
27639a |
-void sigstats(int sig)
|
|
|
27639a |
+void sigstats(int sig __attribute__ ((unused)))
|
|
|
27639a |
{
|
|
|
27639a |
syslog(LOG_NOTICE, "GRE statistics:\n");
|
|
|
27639a |
#define LOG(name,value) syslog(LOG_NOTICE, name "\n", stats .value)
|
|
|
27639a |
@@ -508,7 +508,7 @@ int open_callmgr(struct in_addr inetaddr
|
|
|
27639a |
}
|
|
|
27639a |
|
|
|
27639a |
/*** call the call manager main ***********************************************/
|
|
|
27639a |
-void launch_callmgr(struct in_addr inetaddr, char *phonenr, int argc,
|
|
|
27639a |
+void launch_callmgr(struct in_addr inetaddr, char *phonenr, int argc __attribute__ ((unused)),
|
|
|
27639a |
char**argv,char**envp)
|
|
|
27639a |
{
|
|
|
27639a |
char *my_argv[3] = { argv[0], inet_ntoa(inetaddr), phonenr };
|
|
|
27639a |
@@ -566,7 +566,7 @@ void launch_pppd(char *ttydev, int argc,
|
|
|
27639a |
{
|
|
|
27639a |
char *new_argv[argc + 4];/* XXX if not using GCC, hard code a limit here. */
|
|
|
27639a |
char str_pppd[] = PPPD_BINARY;
|
|
|
27639a |
- char str_direct[] = "-direct";
|
|
|
27639a |
+ char str_direct[] __attribute__ ((unused)) = "-direct";
|
|
|
27639a |
char str_38400[] = "38400";
|
|
|
27639a |
int i = 0, j;
|
|
|
27639a |
new_argv[i++] = str_pppd;
|