Ignore:
Timestamp:
Oct 23, 2008, 3:16:34 PM (12 years ago)
Author:
Bruno Cornec
Message:

register-pid is gone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/common/libmondo-cli.c

    r2036 r2053  
    414414{
    415415    int i = 0;
    416     int lastpos = 0;
    417416    int mount_cnt = 0;
    418417    char *mounted_file_system = NULL;
     
    559558    i = 0;
    560559    lastpos = 0;
    561     while (token = mr_strtok(partition_list, token_chars, &lastpos)) {
     560    while ((token = mr_strtok(partition_list, token_chars, &lastpos)) != NULL) {
    562561        log_msg (5, "Found partition: %s", token);
    563562        strcpy(partitions[i++], token);
     
    654653                    log_msg(4, "  VG %s mount_list: %s", VG, mount_list);
    655654                    lastpos = 0;
    656                     while (token = mr_strtok(mount_list, token_chars, &lastpos)) {
     655                    while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) {
    657656                        log_msg (5, "mount point token: %s", token);
    658657                        if ((DSFptr = find_mount_point_in_list(token)) == NULL) {
     
    675674                    log_msg(4, "  Software raid device list: %s", mount_list);   
    676675                    lastpos = 0;
    677                     while (token = mr_strtok(mount_list, token_chars, &lastpos)) {
     676                    while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) {
    678677                        asprintf(&command, "mdadm --detail %s 2>/dev/null | grep -c %s", token, VG);
    679678                        log_msg (5, "Running: %s", command);
     
    728727        /* Loop through the software raid device list to see if we can find the partition */
    729728        lastpos = 0;
    730         while (token = mr_strtok(mount_list, token_chars, &lastpos)) {
     729        while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) {
    731730            asprintf(&command, "mdadm --detail %s 2>/dev/null | grep -c %s", token, tmp);
    732731            log_msg(4, "  Running: %s", command);
     
    931930        }
    932931        paranoid_free(tmp1);
    933         while (token = mr_strtok(flag_val['I'], token_chars, &lastpos)) {
     932        while ((token = mr_strtok(flag_val['I'], token_chars, &lastpos)) != NULL) {
    934933            switch (get_dsf_mount_list(token, &mounted_on_dsf, &not_mounted_on_dsf)) {
    935934            /* It's a dsf but not a whole disk dsf */
     
    12381237        paranoid_free(tmp1);
    12391238        lastpos = 0;
    1240         while (token = mr_strtok(flag_val['E'], token_chars, &lastpos)) {
     1239        while ((token = mr_strtok(flag_val['E'], token_chars, &lastpos)) != NULL) {
    12411240            switch (get_dsf_mount_list(token, &mounted_on_dsf, &not_mounted_on_dsf)) {
    12421241            case 1:
Note: See TracChangeset for help on using the changeset viewer.