Changeset 2414 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-string.c
- Timestamp:
- Sep 20, 2009, 2:53:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-string.c
r2413 r2414 851 851 * @return The severity (1-3). 852 852 */ 853 int severity_of_difference(char *fn, char * out_reason) {854 855 int sev ;853 int severity_of_difference(char *fn, char **out_reason) { 854 855 int sev = 3; 856 856 char *reason = NULL; 857 857 char *filename = NULL; … … 867 867 } 868 868 869 sev = 3;870 869 mr_asprintf(reason, "Changed since backup. Consider running a differential backup in a day or two."); 871 870 … … 956 955 mr_asprintf(reason, "Temporary file (a lockfile, perhaps) used by software such as X or KDE to register its presence."); 957 956 } 958 if (out_reason) { 959 strcpy(out_reason, reason); 957 958 if (reason != NULL) { 959 *out_reason = reason; 960 960 } 961 961 mr_free(filename); 962 mr_free(reason);963 962 return (sev); 964 963 }
Note:
See TracChangeset
for help on using the changeset viewer.