Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 318068 Details for
Bug 426398
net-dialup/pptpclient - stability fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tag possibly-unused parameters
pptpclient-1.7.2-unused.patch (text/plain), 2.79 KB, created by
Dirk Olmes
on 2012-07-13 06:21:01 UTC
(
hide
)
Description:
tag possibly-unused parameters
Filename:
MIME Type:
Creator:
Dirk Olmes
Created:
2012-07-13 06:21:01 UTC
Size:
2.79 KB
patch
obsolete
>diff -up pptp-1.7.2/pptp_callmgr.c.unused pptp-1.7.2/pptp_callmgr.c >--- pptp-1.7.2/pptp_callmgr.c.unused 2011-12-01 09:58:47.127960697 +0000 >+++ pptp-1.7.2/pptp_callmgr.c 2011-12-01 09:58:47.149960723 +0000 >@@ -38,12 +38,12 @@ void close_unixsock(int fd, struct in_ad > > sigjmp_buf callmgr_env; > >-void callmgr_sighandler(int sig) { >+void callmgr_sighandler(int sig __attribute__ ((unused))) { > /* TODO: according to signal(2), siglongjmp() is unsafe used here */ > siglongjmp (callmgr_env, 1); > } > >-void callmgr_do_nothing(int sig) { >+void callmgr_do_nothing(int sig __attribute__ ((unused))) { > /* do nothing signal handler */ > } > >@@ -104,7 +104,7 @@ void call_callback(PPTP_CONN *conn, PPTP > *****************************************************************************/ > > /*** Call Manager *************************************************************/ >-int callmgr_main(int argc, char **argv, char **envp) >+int callmgr_main(int argc, char **argv, char **envp __attribute__ ((unused))) > { > struct in_addr inetaddr; > int inet_sock, unix_sock; >@@ -377,7 +377,7 @@ int open_unixsock(struct in_addr inetadd > } > > /*** close_inetsock ***********************************************************/ >-void close_inetsock(int fd, struct in_addr inetaddr) >+void close_inetsock(int fd, struct in_addr inetaddr __attribute__ ((unused))) > { > close(fd); > } >diff -up pptp-1.7.2/pptp.c.unused pptp-1.7.2/pptp.c >--- pptp-1.7.2/pptp.c.unused 2011-12-01 09:58:47.143960715 +0000 >+++ pptp-1.7.2/pptp.c 2011-12-01 10:01:40.171147875 +0000 >@@ -151,13 +151,13 @@ void do_nothing(int sig) > sigjmp_buf env; > > /*** signal handler ***********************************************************/ >-void sighandler(int sig) >+void sighandler(int sig __attribute__ ((unused))) > { > siglongjmp(env, 1); > } > > /*** report statistics signal handler (SIGUSR1) *******************************/ >-void sigstats(int sig) >+void sigstats(int sig __attribute__ ((unused))) > { > syslog(LOG_NOTICE, "GRE statistics:\n"); > #define LOG(name,value) syslog(LOG_NOTICE, name "\n", stats .value) >@@ -508,7 +508,7 @@ int open_callmgr(struct in_addr inetaddr > } > > /*** call the call manager main ***********************************************/ >-void launch_callmgr(struct in_addr inetaddr, char *phonenr, int argc, >+void launch_callmgr(struct in_addr inetaddr, char *phonenr, int argc __attribute__ ((unused)), > char**argv,char**envp) > { > char *my_argv[3] = { argv[0], inet_ntoa(inetaddr), phonenr }; >@@ -566,7 +566,7 @@ void launch_pppd(char *ttydev, int argc, > { > char *new_argv[argc + 4];/* XXX if not using GCC, hard code a limit here. */ > char str_pppd[] = PPPD_BINARY; >- char str_direct[] = "-direct"; >+ char str_direct[] __attribute__ ((unused)) = "-direct"; > char str_38400[] = "38400"; > int i = 0, j; > new_argv[i++] = str_pppd;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 426398
:
318054
|
318056
|
318058
|
318060
|
318062
|
318064
|
318066
| 318068