Ignore:
Timestamp:
Jun 25, 2013, 10:53:14 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Apply fixes to 3.1 tree so that at least mondo compiles again (but that branch probably doesn't work at all again).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/mondo/src/common/libmondo-devices.c

    r3148 r3161  
    330330    char *incoming = NULL;
    331331    char *searchstr = NULL;
    332     char *tmp = NULL;
    333     char *p;
    334     char *p;
    335332
    336333    /*@ ints ******************************************************* */
     
    339336    /*@ pointers *************************************************** */
    340337    FILE *fin;
    341 
    342338
    343339    /*@ end vars *************************************************** */
     
    354350    mr_free(program);
    355351    return (res);
    356 #else
    357     /* To avoid compiler warnings */
    358     tmp = NULL;
    359352#endif
    360353
     
    984977    char *command = NULL;
    985978    char *format_sz = NULL;
    986     char *p;
    987     char *p;
    988979
    989980    FILE *pin;
     
    20322023                    mr_strcat(bkpinfo->exclude_paths,"|%s",mounted_on_dsf);
    20332024                } else {
    2034                     mr_asprintf(&(bkpinfo->exclude_paths),"%s",mounted_on_dsf);
     2025                    mr_asprintf(bkpinfo->exclude_paths,"%s",mounted_on_dsf);
    20352026                }
    20362027                if (bkpinfo->exclude_devs) {
    20372028                    mr_strcat(bkpinfo->exclude_devs,"|%s",token);
    20382029                } else {
    2039                     mr_asprintf(&(bkpinfo->exclude_devs),"%s",token);
     2030                    mr_asprintf(bkpinfo->exclude_devs,"%s",token);
    20402031                }
    20412032            }
     
    20522043                    mr_strcat(bkpinfo->exclude_paths, "|%s",not_mounted_on_dsf);
    20532044                } else {
    2054                     mr_asprintf(&(bkpinfo->exclude_paths),"%s",not_mounted_on_dsf);
     2045                    mr_asprintf(bkpinfo->exclude_paths,"%s",not_mounted_on_dsf);
    20552046                }
    20562047            }
     
    20652056        /*  Adds a | to ensure correct detection even at both ends */
    20662057        mr_asprintf(tmp1,"|%s",token);
    2067         mr_asprintf(&tmp2,"|%s|",token);
     2058        mr_asprintf(tmp2,"|%s|",token);
    20682059        if (mode == 'E') {
    20692060            /*  Add the token if not already in the list */
     
    29842975
    29852976        }
    2986 <<<<<<< .courant
    29872977        p = popup_and_get_string("Network protocol", "Which Network protocol should I use (nfs/sshfs/smbfs) ?", bkpinfo->netfs_proto);
    29882978        if (p == NULL) {
     
    30062996            strcpy(tmp1, "");
    30072997        }
    3008         if (!popup_and_get_string
    3009             ("Network user", "Which user should I use if any ?",
    3010              tmp1, MAX_STR_LEN)) {
     2998        if (!popup_and_get_string("Network user", "Which user should I use if any ?",tmp1)) {
    30112999            log_to_screen("User has chosen not to backup the PC");
    30123000            finish(1);
     
    30143002        mr_free(bkpinfo->netfs_user);
    30153003        if (strcmp(tmp1, "") != 0) {
    3016             mr_asprintf(&(bkpinfo->netfs_user), "%s", tmp1);
     3004            mr_asprintf(bkpinfo->netfs_user, "%s", tmp1);
    30173005        }
    30183006   
Note: See TracChangeset for help on using the changeset viewer.