Changeset 3161 in MondoRescue for branches/3.1/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jun 25, 2013, 10:53:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/common/libmondo-devices.c
r3148 r3161 330 330 char *incoming = NULL; 331 331 char *searchstr = NULL; 332 char *tmp = NULL;333 char *p;334 char *p;335 332 336 333 /*@ ints ******************************************************* */ … … 339 336 /*@ pointers *************************************************** */ 340 337 FILE *fin; 341 342 338 343 339 /*@ end vars *************************************************** */ … … 354 350 mr_free(program); 355 351 return (res); 356 #else357 /* To avoid compiler warnings */358 tmp = NULL;359 352 #endif 360 353 … … 984 977 char *command = NULL; 985 978 char *format_sz = NULL; 986 char *p;987 char *p;988 979 989 980 FILE *pin; … … 2032 2023 mr_strcat(bkpinfo->exclude_paths,"|%s",mounted_on_dsf); 2033 2024 } else { 2034 mr_asprintf( &(bkpinfo->exclude_paths),"%s",mounted_on_dsf);2025 mr_asprintf(bkpinfo->exclude_paths,"%s",mounted_on_dsf); 2035 2026 } 2036 2027 if (bkpinfo->exclude_devs) { 2037 2028 mr_strcat(bkpinfo->exclude_devs,"|%s",token); 2038 2029 } else { 2039 mr_asprintf( &(bkpinfo->exclude_devs),"%s",token);2030 mr_asprintf(bkpinfo->exclude_devs,"%s",token); 2040 2031 } 2041 2032 } … … 2052 2043 mr_strcat(bkpinfo->exclude_paths, "|%s",not_mounted_on_dsf); 2053 2044 } else { 2054 mr_asprintf( &(bkpinfo->exclude_paths),"%s",not_mounted_on_dsf);2045 mr_asprintf(bkpinfo->exclude_paths,"%s",not_mounted_on_dsf); 2055 2046 } 2056 2047 } … … 2065 2056 /* Adds a | to ensure correct detection even at both ends */ 2066 2057 mr_asprintf(tmp1,"|%s",token); 2067 mr_asprintf( &tmp2,"|%s|",token);2058 mr_asprintf(tmp2,"|%s|",token); 2068 2059 if (mode == 'E') { 2069 2060 /* Add the token if not already in the list */ … … 2984 2975 2985 2976 } 2986 <<<<<<< .courant2987 2977 p = popup_and_get_string("Network protocol", "Which Network protocol should I use (nfs/sshfs/smbfs) ?", bkpinfo->netfs_proto); 2988 2978 if (p == NULL) { … … 3006 2996 strcpy(tmp1, ""); 3007 2997 } 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)) { 3011 2999 log_to_screen("User has chosen not to backup the PC"); 3012 3000 finish(1); … … 3014 3002 mr_free(bkpinfo->netfs_user); 3015 3003 if (strcmp(tmp1, "") != 0) { 3016 mr_asprintf( &(bkpinfo->netfs_user), "%s", tmp1);3004 mr_asprintf(bkpinfo->netfs_user, "%s", tmp1); 3017 3005 } 3018 3006
Note:
See TracChangeset
for help on using the changeset viewer.