diff options
author | Frederic Culot <calcurse@culot.org> | 2009-01-02 22:28:53 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-01-02 22:28:53 +0000 |
commit | bf3bce0ab2d6d5fc8448821fbfa29b48a1bb5994 (patch) | |
tree | aaff674f4b38286007250298e88cc21d2f7c8d3c /src/vars.c | |
parent | aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd (diff) | |
download | calcurse-bf3bce0ab2d6d5fc8448821fbfa29b48a1bb5994.zip |
code cleanup
Diffstat (limited to 'src/vars.c')
-rwxr-xr-x | src/vars.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -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); -} |