commit a2a9a6ed659d985aca1d008078b58d7c3886920c
parent 68b83972f68fa59c192342f5ea4d2052c330f148
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Tue, 5 Mar 2024 23:19:19 -0800
Rename TimeField to time_field
A style thing.
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pages/main.c b/pages/main.c
@@ -93,7 +93,7 @@ printhours(struct pagedata *pd, time_t *times, int len)
}
enum kcgi_err
-printtimebutton(struct pagedata *pd, enum TimeField tf)
+printtimebutton(struct pagedata *pd, enum time_field tf)
{
enum kcgi_err status;
static char *buttons[] = {
@@ -247,7 +247,7 @@ pagemain(struct pagedata *pd)
{
enum kcgi_err status;
struct user *user;
- enum TimeField tf;
+ enum time_field tf;
time_t *times;
size_t ntimes;
diff --git a/times.c b/times.c
@@ -37,7 +37,7 @@ newrow(struct pagedata *pd, char *hash)
}
enum sqlbox_code
-settime(struct pagedata *pd, char *hash, enum TimeField f, time_t time)
+settime(struct pagedata *pd, char *hash, enum time_field f, time_t time)
{
struct sqlbox_parm ps[] = {
{ .iparm = f, .type = SQLBOX_PARM_INT },
diff --git a/times.h b/times.h
@@ -1,4 +1,4 @@
-enum TimeField {
+enum time_field {
StartTime,
BreakStartTime,
BreakEndTime,
@@ -8,5 +8,5 @@ enum TimeField {
extern char *timefields[];
enum sqlbox_code newrow(struct pagedata *pd, char *hash);
-enum sqlbox_code settime(struct pagedata *pd, char *hash, enum TimeField f, time_t time);
+enum sqlbox_code settime(struct pagedata *pd, char *hash, enum time_field f, time_t time);
time_t *gettimes(struct pagedata *pd, char *hash, size_t *relem);