Increment array

2001-01-25  Bradford Hovinen  <hovinen@ximian.com>

	* location.c (location_rollback_all_to): Increment array

	* util.c (parse_date): Normalize values

2001-01-24  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (do_load): Disabled locking for now
This commit is contained in:
Bradford Hovinen 2001-01-25 15:23:51 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 50d88decfb
commit 18b6da4d1a
5 changed files with 15 additions and 3 deletions

View file

@ -1,5 +1,13 @@
2001-01-25 Bradford Hovinen <hovinen@ximian.com>
* location.c (location_rollback_all_to): Increment array index
* util.c (parse_date): Normalize values
2001-01-24 Bradford Hovinen <hovinen@ximian.com>
* config-log.c (do_load): Disabled locking for now
* archiver-spec: Added fine-grained location management description
2001-01-15 Bradford Hovinen <hovinen@ximian.com>

View file

@ -3,6 +3,7 @@
* Fix race in lock handling and add timeout support (look in gnome-mime)
* Support multiple backends from CLI
* Add translateable backend description support
* Some way to store the rollback time for each backend, for GUI purposes
Long-term
* Add clustering support:

View file

@ -774,6 +774,7 @@ do_load (ConfigLog *config_log)
do_unload (config_log);
config_log_reset_filenames (config_log);
#if 0 /* Locking disabled for now */
/* FIXME: Race condition here, plus lock handling should be
* better */
@ -782,6 +783,7 @@ do_load (ConfigLog *config_log)
lock_file = fopen (config_log->lock_filename, "w");
fclose (lock_file);
#endif
config_log->file = fopen (config_log->filename, "r");

View file

@ -555,6 +555,7 @@ location_rollback_all_to (Location *location, struct tm *date,
if (id_array[i] != -1)
do_rollback (location->p->fullpath, node->data,
id_array[i]);
i++;
}
if (parent_chain && location->p->inherits_location != NULL)

View file

@ -63,15 +63,15 @@ parse_date (char *str)
if (!ok) return NULL;
date = g_new (struct tm, 1);
date->tm_year = value;
date->tm_mon = 12;
date->tm_year = value - 1900;
date->tm_mon = 11;
date->tm_mday = 31;
date->tm_hour = 23;
date->tm_min = 59;
date->tm_sec = 59;
if (extract_number (&str, &value, 2))
date->tm_mon = value;
date->tm_mon = value - 1;
else
return date;