From bf3bce0ab2d6d5fc8448821fbfa29b48a1bb5994 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Fri, 2 Jan 2009 22:28:53 +0000 Subject: code cleanup --- src/vars.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/vars.c') diff --git a/src/vars.c b/src/vars.c index 2283067..9e7e529 100755 --- a/src/vars.c +++ b/src/vars.c @@ -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); -} -- cgit v1.2.3-54-g00ecf