}
/* 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);
* 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);
}
#include "gatppp.h"
#include "ppp.h"
+#define DEBUG
#ifdef DEBUG
static const char *pppcp_state_strings[] =
{"INITIAL", "STARTING", "CLOSED", "STOPPED", "CLOSING", "STOPPING",
/* 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);
}
/*