From 021fe93cf7656b3e3e7eb7fc01a30a4727bc359c Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Mon, 10 Mar 2025 10:33:20 -0400 Subject: Offloaded reallocing list to setkey --- src/include/fileops.h | 1 + src/include/keytab.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/fileops.h b/src/include/fileops.h index 2354913..63294ea 100644 --- a/src/include/fileops.h +++ b/src/include/fileops.h @@ -2,5 +2,6 @@ #define FILEOPS_H unsigned char *readdb(char *filename); +// TODO: Implement writedb function #endif diff --git a/src/include/keytab.h b/src/include/keytab.h index 40db10f..7e15643 100644 --- a/src/include/keytab.h +++ b/src/include/keytab.h @@ -21,8 +21,7 @@ struct keytablist { int *getkeys(struct keytablist *list, int id); struct keytab getkey(struct keytablist *list, int id, char *key); -// TODO: rewrite setkey to take len as an argument -void setkey(struct keytablist *list, int id, char *pair); +void setkey(struct keytablist **list, int *len, int id, char *pair); void delkey(struct keytablist *list, int id, char *key); #endif -- cgit v1.2.3