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

« back to all changes in this revision

Viewing changes to gatchat/test-qcdm.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:
161
161
 
162
162
        g_option_context_free(context);
163
163
 
164
 
        if (!option_device)
 
164
        if (option_device == NULL)
165
165
                option_device = g_strdup("/dev/ttyUSB1");
166
166
 
167
167
        g_print("Device: %s\n", option_device);
168
168
 
169
169
        channel = g_at_tty_open(option_device, NULL);
170
 
        if (!channel) {
 
170
        if (channel == NULL) {
171
171
                g_printerr("Failed to open QCDM device\n");
172
172
                return 1;
173
173
        }
178
178
 
179
179
        g_io_channel_unref(channel);
180
180
 
181
 
        if (!hdlc)
 
181
        if (hdlc == NULL)
182
182
                return 1;
183
183
 
184
184
        if (option_debug == TRUE)