patch-l2tpns_c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- l2tpns-2.1.21.orig/l2tpns.c 2006-06-22 17:30:50.000000000 +0200
  3. +++ l2tpns-2.1.21/l2tpns.c 2013-07-16 17:39:13.000000000 +0200
  4. @@ -10,6 +10,7 @@ char const *cvs_id_l2tpns = "$Id: l2tpns
  5. #include <assert.h>
  6. #include <errno.h>
  7. #include <fcntl.h>
  8. +#include <stdio.h>
  9. #include <linux/if_tun.h>
  10. #define SYSLOG_NAMES
  11. #include <syslog.h>
  12. @@ -22,7 +23,6 @@ char const *cvs_id_l2tpns = "$Id: l2tpns
  13. #include <netinet/ip6.h>
  14. #include <stdarg.h>
  15. #include <stdlib.h>
  16. -#include <stdio.h>
  17. #include <string.h>
  18. #include <ctype.h>
  19. #include <sys/ioctl.h>
  20. @@ -4233,31 +4233,6 @@ int main(int argc, char *argv[])
  21. chdir("/tmp");
  22. }
  23. - if (config->scheduler_fifo)
  24. - {
  25. - int ret;
  26. - struct sched_param params = {0};
  27. - params.sched_priority = 1;
  28. -
  29. - if (get_nprocs() < 2)
  30. - {
  31. - LOG(0, 0, 0, "Not using FIFO scheduler, there is only 1 processor in the system.\n");
  32. - config->scheduler_fifo = 0;
  33. - }
  34. - else
  35. - {
  36. - if ((ret = sched_setscheduler(0, SCHED_FIFO, &params)) == 0)
  37. - {
  38. - LOG(1, 0, 0, "Using FIFO scheduler. Say goodbye to any other processes running\n");
  39. - }
  40. - else
  41. - {
  42. - LOG(0, 0, 0, "Error setting scheduler to FIFO: %s\n", strerror(errno));
  43. - config->scheduler_fifo = 0;
  44. - }
  45. - }
  46. - }
  47. -
  48. /* Set up the cluster communications port. */
  49. if (cluster_init() < 0)
  50. exit(1);