Use an array of const strings to keep gcc happy.

1998-08-03  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* main.c (about_calendar_cmd): Use an array of const strings to
	keep gcc happy.

	* alarm.c (alarm_compare_by_time): Use gconstpointer to keep gcc happy.
	* calendar.c (calendar_object_compare_by_start): Likewise.
	* gncal-full-day.c (child_compare_by_start): Likewise.

svn path=/trunk/; revision=296
This commit is contained in:
Federico Mena Quintero
1998-08-04 01:55:18 +00:00
committed by Arturo Espinosa
parent d19286255d
commit e095ce5ab8
10 changed files with 32 additions and 23 deletions

View File

@ -1,3 +1,12 @@
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.c (about_calendar_cmd): Use an array of const strings to
keep gcc happy.
* alarm.c (alarm_compare_by_time): Use gconstpointer to keep gcc happy.
* calendar.c (calendar_object_compare_by_start): Likewise.
* gncal-full-day.c (child_compare_by_start): Likewise.
1998-07-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c: Add support for --view flag.

View File

@ -61,10 +61,10 @@ alarm_ready (void *closure, int fd, GdkInputCondition cond)
}
static int
alarm_compare_by_time (gpointer a, gpointer b)
alarm_compare_by_time (gconstpointer a, gconstpointer b)
{
AlarmRecord *ara = a;
AlarmRecord *arb = b;
const AlarmRecord *ara = a;
const AlarmRecord *arb = b;
time_t diff;
diff = ara->activation_time - arb->activation_time;

View File

@ -339,10 +339,10 @@ calendar_save (Calendar *cal, char *fname)
}
static gint
calendar_object_compare_by_start (gpointer a, gpointer b)
calendar_object_compare_by_start (gconstpointer a, gconstpointer b)
{
CalendarObject *ca = a;
CalendarObject *cb = b;
const CalendarObject *ca = a;
const CalendarObject *cb = b;
time_t diff;
diff = ca->ev_start - cb->ev_start;

View File

@ -2115,10 +2115,10 @@ gncal_full_day_foreach (GtkContainer *container, GtkCallback callback, gpointer
}
static gint
child_compare_by_start (gpointer a, gpointer b)
child_compare_by_start (gconstpointer a, gconstpointer b)
{
Child *ca = a;
Child *cb = b;
const Child *ca = a;
const Child *cb = b;
time_t diff;
diff = ca->start - cb->start;

View File

@ -61,10 +61,10 @@ alarm_ready (void *closure, int fd, GdkInputCondition cond)
}
static int
alarm_compare_by_time (gpointer a, gpointer b)
alarm_compare_by_time (gconstpointer a, gconstpointer b)
{
AlarmRecord *ara = a;
AlarmRecord *arb = b;
const AlarmRecord *ara = a;
const AlarmRecord *arb = b;
time_t diff;
diff = ara->activation_time - arb->activation_time;

View File

@ -61,10 +61,10 @@ alarm_ready (void *closure, int fd, GdkInputCondition cond)
}
static int
alarm_compare_by_time (gpointer a, gpointer b)
alarm_compare_by_time (gconstpointer a, gconstpointer b)
{
AlarmRecord *ara = a;
AlarmRecord *arb = b;
const AlarmRecord *ara = a;
const AlarmRecord *arb = b;
time_t diff;
diff = ara->activation_time - arb->activation_time;

View File

@ -339,10 +339,10 @@ calendar_save (Calendar *cal, char *fname)
}
static gint
calendar_object_compare_by_start (gpointer a, gpointer b)
calendar_object_compare_by_start (gconstpointer a, gconstpointer b)
{
CalendarObject *ca = a;
CalendarObject *cb = b;
const CalendarObject *ca = a;
const CalendarObject *cb = b;
time_t diff;
diff = ca->ev_start - cb->ev_start;

View File

@ -2115,10 +2115,10 @@ gncal_full_day_foreach (GtkContainer *container, GtkCallback callback, gpointer
}
static gint
child_compare_by_start (gpointer a, gpointer b)
child_compare_by_start (gconstpointer a, gconstpointer b)
{
Child *ca = a;
Child *cb = b;
const Child *ca = a;
const Child *cb = b;
time_t diff;
diff = ca->start - cb->start;

View File

@ -122,7 +122,7 @@ static void
about_calendar_cmd (GtkWidget *widget, void *data)
{
GtkWidget *about;
gchar *authors[] = {
const gchar *authors[] = {
"Miguel de Icaza (miguel@kernel.org)",
"Federico Mena (quartic@gimp.org)",
"Arturo Espinosa (arturo@nuclecu.unam.mx)",

View File

@ -122,7 +122,7 @@ static void
about_calendar_cmd (GtkWidget *widget, void *data)
{
GtkWidget *about;
gchar *authors[] = {
const gchar *authors[] = {
"Miguel de Icaza (miguel@kernel.org)",
"Federico Mena (quartic@gimp.org)",
"Arturo Espinosa (arturo@nuclecu.unam.mx)",