~clint-fewbar/ubuntu/precise/modemmanager/fix-removed-not-purged

« back to all changes in this revision

Viewing changes to src/mm-generic-cdma.c

  • Committer: Package Import Robot
  • Author(s): Artem Popov
  • Date: 2012-01-02 13:32:18 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120102133218-f2xuil48af71xa7b
Tags: upstream-0.5+git.20111231t174444.1e332ab
ImportĀ upstreamĀ versionĀ 0.5+git.20111231t174444.1e332ab

Show diffs side-by-side

added added

removed removed

Lines of Context:
988
988
{
989
989
    MMGenericCdmaPrivate *priv;
990
990
    MMCallbackInfo *info = (MMCallbackInfo *) user_data;
991
 
    char *reply = response->str;
992
991
 
993
992
    /* If the modem has already been removed, return without
994
993
     * scheduling callback */
1008
1007
            return;
1009
1008
        }
1010
1009
    } else {
 
1010
        const char *reply = response->str;
1011
1011
        int quality, ber;
1012
1012
 
1013
1013
        /* Got valid reply */
1273
1273
                     gpointer user_data)
1274
1274
{
1275
1275
    MMCallbackInfo *info = (MMCallbackInfo *) user_data;
1276
 
    char *reply = response->str;
 
1276
    char *reply;
1277
1277
    int class = 0, sid = 99999, num;
1278
1278
    unsigned char band = 'Z';
1279
1279
    gboolean success = FALSE;
1288
1288
        goto out;
1289
1289
    }
1290
1290
 
 
1291
    reply = response->str;
1291
1292
    if (strstr (reply, "+CSS: "))
1292
1293
        reply += 6;
1293
1294
 
2142
2143
    /* Fail immediately on anything but "no service" */
2143
2144
    if (error && !no_service_error) {
2144
2145
        simple_state_machine (MM_MODEM (modem), error, info);
 
2146
        g_error_free (error);
2145
2147
        return;
2146
2148
    }
2147
2149
 
2317
2319
    }
2318
2320
 
2319
2321
    simple_state_machine (MM_MODEM (simple), error, info);
 
2322
    g_error_free (error);
2320
2323
}
2321
2324
 
2322
2325
static void