Fix whitespace damage in PPP implementation
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 31 Mar 2010 17:30:54 +0000 (10:30 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 31 Mar 2010 17:30:54 +0000 (10:30 -0700)
gatchat/ppp.c
gatchat/ppp_cp.c
gatchat/ppp_net.c

index f93b52d..7755791 100644 (file)
@@ -164,7 +164,7 @@ static guint8 *ppp_encode(GAtPPP *ppp, guint8 *data, int len,
        }
 
        /* add FCS */
-       fcs ^= 0xffff;                 /* complement */
+       fcs ^= 0xffff;          /* complement */
        ppp_put(ppp, frame, &pos, (guint8)(fcs & 0x00ff), lcp);
        ppp_put(ppp, frame, &pos, (guint8)((fcs >> 8) & 0x00ff), lcp);
 
@@ -324,7 +324,7 @@ void ppp_transmit(GAtPPP *ppp, guint8 *packet, guint infolen)
         * we won't block, or allow ourselves to block here?
         */
        status = g_io_channel_write_chars(ppp->modem, (gchar *) frame,
-                                          framelen, &bytes_written, &error);
+                                       framelen, &bytes_written, &error);
 
        g_free(frame);
 }
index ac1a37d..dbddb95 100644 (file)
@@ -34,6 +34,7 @@
 #include "gatppp.h"
 #include "ppp.h"
 
+#define DEBUG
 #ifdef DEBUG
 static const char *pppcp_state_strings[] =
        {"INITIAL", "STARTING", "CLOSED", "STOPPED", "CLOSING", "STOPPING",
index 4b459ad..bc9ec17 100644 (file)
@@ -75,7 +75,7 @@ static void ip_process_packet(gpointer priv, guint8 *packet)
        /* find the length of the packet to transmit */
        len = get_host_short(&packet[2]);
        status = g_io_channel_write_chars(data->channel, (gchar *) packet,
-                                          len, &bytes_written, &error);
+                                               len, &bytes_written, &error);
 }
 
 /*