code cleanup

This commit is contained in:
Frederic Culot
2009-01-02 22:28:53 +00:00
parent aa7d6c5eb7
commit bf3bce0ab2
11 changed files with 211 additions and 236 deletions

View File

@@ -1,4 +1,4 @@
/* $calcurse: vars.c,v 1.13 2008/12/28 19:41:45 culot Exp $ */
/* $calcurse: vars.c,v 1.14 2009/01/02 22:28:54 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -92,10 +92,10 @@ char path_notes[] = "";
char path_keys[] = "";
/* Variable to handle pads. */
struct pad_s *apad;
struct pad_s apad;
/* Variable to store notify-bar settings. */
struct nbar_s *nbar;
struct nbar_s nbar;
/*
* Variables init
@@ -135,9 +135,8 @@ vars_init (conf_t *conf)
calendar_set_first_day_of_week (MONDAY);
/* Pad structure to scroll text inside the appointment panel */
apad = (struct pad_s *) mem_malloc (sizeof (struct pad_s));
apad->length = 1;
apad->first_onscreen = 0;
apad.length = 1;
apad.first_onscreen = 0;
/* Attribute definitions for color and non-color terminals */
custom_init_attr ();
@@ -145,9 +144,3 @@ vars_init (conf_t *conf)
/* Start at the current date */
calendar_init_slctd_day ();
}
void
vars_free (void)
{
mem_free (apad);
}