]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/options.c
Added ability to detect and use either gcc or Sun WorkShop C compiler
[ppp.git] / pppd / options.c
index 223d1fa63a835bfc53b3ebbdfefc8a3faa189a41..d17df58709e70afe15af92156521603b8fbdebcc 100644 (file)
@@ -17,7 +17,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define RCSID  "$Id: options.c,v 1.84 2002/07/13 06:24:36 kad Exp $"
+#define RCSID  "$Id: options.c,v 1.86 2002/09/07 05:15:25 carlsonj Exp $"
 
 #include <ctype.h>
 #include <stdio.h>
@@ -902,7 +902,9 @@ print_option(opt, mainopt, printer, arg)
                        void (*oprt) __P((option_t *,
                                          void ((*)__P((void *, char *, ...))),
                                          void *));
-                       oprt = opt->addr2;
+                       oprt = (void (*) __P((option_t *,
+                                        void ((*)__P((void *, char *, ...))),
+                                        void *)))opt->addr2;
                        (*oprt)(opt, printer, arg);
                } else if (opt->flags & OPT_A2STRVAL) {
                        p = (char *) opt->addr2;
@@ -1499,7 +1501,7 @@ setmodir(argv)
     } else if (!strcmp(*argv,"out")) {
         maxoctets_dir = PPP_OCTETS_DIRECTION_OUT;
     } else if (!strcmp(*argv,"max")) {
-        maxoctets_dir = PPP_OCTETS_DIRECTION_MAX;
+        maxoctets_dir = PPP_OCTETS_DIRECTION_MAXOVERAL;
     } else {
         maxoctets_dir = PPP_OCTETS_DIRECTION_SUM;
     }