changeset 1923:84f7fdb14fae

* tests/ppp_up.c: Change the prototype of pr_func to match diag_printf(). * src/ppp_io.c (ppplogchar): Added missing parameter to diag_printf().
author asl
date Sun, 27 Mar 2005 17:22:51 +0000
parents 702df397e602
children 3c298b795d0b
files packages/net/ppp/current/ChangeLog packages/net/ppp/current/src/ppp_io.c packages/net/ppp/current/tests/ppp_up.c
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/ppp/current/ChangeLog
+++ b/packages/net/ppp/current/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* tests/ppp_up.c: Change the prototype of pr_func to match 
+	diag_printf().
+	* src/ppp_io.c (ppplogchar): Added missing parameter to diag_printf().
+
 2005-01-16  Matt Jerdonek <maj1224@yahoo.com>
             Andrew Lunn  <andrew.lunn@ascom.ch>
 	
--- a/packages/net/ppp/current/src/ppp_io.c
+++ b/packages/net/ppp/current/src/ppp_io.c
@@ -1139,7 +1139,7 @@ ppplogchar(sc, c)
 	sc->sc_rawin[sc->sc_rawin_count++] = c;
     if (sc->sc_rawin_count >= sizeof(sc->sc_rawin)
 	|| (c < 0 && sc->sc_rawin_count > 0)) {
-        diag_printf("ppp%d input:\n");
+        diag_printf("ppp%d input:\n",sc->sc_if.if_unit);
         diag_vdump_buf_with_offset( diag_printf, sc->sc_rawin, sc->sc_rawin_count, sc->sc_rawin );
 	sc->sc_rawin_count = 0;
     }
--- a/packages/net/ppp/current/tests/ppp_up.c
+++ b/packages/net/ppp/current/tests/ppp_up.c
@@ -69,7 +69,7 @@
 
 //==========================================================================
 
-typedef void pr_fun(char *fmt, ...);
+typedef int pr_fun(const char *fmt, ...);
 
 externC void show_network_tables(pr_fun *pr);