~cyphermox/ubuntu/natty/ofono/release-0.41

« back to all changes in this revision

Viewing changes to gatchat/gsmdial.c

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-02-11 02:17:20 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: mathieu-tl@ubuntu.com-20110211021720-cvxc3erw1keomunj
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
 
304
304
        /* open ppp */
305
305
        ppp = g_at_ppp_new_from_io(io);
306
 
        if (!ppp) {
 
306
        if (ppp == NULL) {
307
307
                g_print("Unable to create PPP object\n");
308
308
                exit(1);
309
309
        }
509
509
        g_at_chat_send(control, "AT+CFUN=1", NULL, check_pin, NULL, NULL);
510
510
}
511
511
 
512
 
static int open_serial()
 
512
static int open_serial(void)
513
513
{
514
514
        GAtSyntax *syntax;
515
515
        GIOChannel *channel;
551
551
        return 0;
552
552
}
553
553
 
554
 
static int open_ip()
 
554
static int open_ip(void)
555
555
{
556
556
        int sk, err;
557
557
        struct sockaddr_in addr;