diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-10 10:33:20 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-10 10:33:20 -0400 |
commit | 021fe93cf7656b3e3e7eb7fc01a30a4727bc359c (patch) | |
tree | 00f089e249152c1cfd529a9855a5b1de7f4eb697 /src/include | |
parent | 7caa00ef467acdb7b874d4283b3bc58730bf803d (diff) |
Offloaded reallocing list to setkey
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/fileops.h | 1 | ||||
-rw-r--r-- | src/include/keytab.h | 3 |
2 files changed, 2 insertions, 2 deletions
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 |