diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-14 19:00:08 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-14 19:03:53 +0100 |
commit | 9c9fd5da15573a702efe5adc054c96a9eb8aa0ce (patch) | |
tree | 47b14650b9dc34e032a9e744651b1b921365d206 /src/event.c | |
parent | 55262a30743095ad4dbc14dc06f4487be11f9bd8 (diff) | |
download | calcurse-9c9fd5da15573a702efe5adc054c96a9eb8aa0ce.zip |
Overall indentation fixes.
Use spaces instead of tabs for source code indentation only, strip
trailing whitespaces from lines.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/event.c b/src/event.c index 263cd2d..fc527c6 100644 --- a/src/event.c +++ b/src/event.c @@ -97,11 +97,11 @@ event_new (char *mesg, char *note, long day, int id) for (;;) { if (*i == 0 || (*i)->day > day) - { - o->next = *i; - *i = o; - break; - } + { + o->next = *i; + *i = o; + break; + } i = &(*i)->next; } return (o); @@ -175,15 +175,15 @@ event_get (long day, int pos) for (o = eventlist; o; o = o->next) { if (event_inday (o, day)) - { - if (n == pos) - return o; - n++; - } + { + if (n == pos) + return o; + n++; + } } EXIT (_("event not found")); return 0; - /* NOTREACHED */ + /* NOTREACHED */ } /* Delete an event from the list. */ @@ -198,9 +198,9 @@ event_delete_bynum (long start, unsigned num, enum eraseflg flag) for (i = eventlist; i != 0; i = i->next) { if (event_inday (i, start)) - { - if (n == num) - { + { + if (n == num) + { switch (flag) { case ERASE_FORCE_ONLY_NOTE: @@ -212,21 +212,21 @@ event_delete_bynum (long start, unsigned num, enum eraseflg flag) erase_note (&i->note, ERASE_FORCE_KEEP_NOTE); /* FALLTHROUGH */ default: - *iptr = i->next; - mem_free (i->mesg); + *iptr = i->next; + mem_free (i->mesg); if (flag != ERASE_FORCE_KEEP_NOTE && flag != ERASE_CUT) erase_note (&i->note, flag); - mem_free (i); + mem_free (i); break; } - return; - } - n++; - } + return; + } + n++; + } iptr = &i->next; } EXIT (_("event not found")); - /* NOTREACHED */ + /* NOTREACHED */ } void |