timekeeper

[Abandoned unfinished] CGI web application in C for time tracking. (My first, just a learning project)
Log | Files | Refs | README

commit e5b44abf728c5a5bf500527a30d80784c0c90872
parent e6cf23a08bda265c1499b989ed6288e4c0e24ef9
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Sun, 17 Mar 2024 17:09:19 -0700

Fix settime() return type

It does not return an sqlbox error code, but an int. (Yes, likely
the same thing under the hood, but they differ significantly
semantically.)

Diffstat:
Mtimes.c | 2+-
Mtimes.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/times.c b/times.c @@ -33,7 +33,7 @@ enum time_flag timeflagmap[] = { EndTimeFlag }; -enum sqlbox_code +int settime(struct pagedata *pd, char *hash, enum time_field f, time_t time) { static enum StmtID map[] = { diff --git a/times.h b/times.h @@ -23,7 +23,7 @@ struct timesheet { extern char *timefields[]; extern enum time_flag timeflagmap[]; -enum sqlbox_code settime(struct pagedata *pd, char *hash, enum time_field f, time_t time); +int settime(struct pagedata *pd, char *hash, enum time_field f, time_t time); int breaktime(struct pagedata *pd, char *hash); void freetimesheet(struct timesheet *ts); struct timesheet *newtimesheet(void);