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:

committed by
Arturo Espinosa

parent
d19286255d
commit
e095ce5ab8
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)",
|
||||
|
@ -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)",
|
||||
|
Reference in New Issue
Block a user