From 9bd090f1da8961b449323304395a722481655c2c Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 6 Aug 2016 14:40:10 +1000 Subject: [PATCH] Fix for email --- email.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/email.c b/email.c index c14c1f9..3bf2495 100644 --- a/email.c +++ b/email.c @@ -100,7 +100,7 @@ void send_email(struct user_record *user) { free(recipient); } -void show_email(int socket, struct user_record *user, int msgno) { +void show_email(struct user_record *user, int msgno) { char buffer[256]; sqlite3 *db; sqlite3_stmt *res; @@ -327,7 +327,7 @@ void list_emails(struct user_record *user) { msgtoread = atoi(buffer) - 1; sqlite3_finalize(res); sqlite3_close(db); - show_email(socket, user, msgtoread); + show_email(user, msgtoread); return; } } @@ -344,7 +344,7 @@ void list_emails(struct user_record *user) { msgtoread = atoi(buffer) - 1; sqlite3_finalize(res); sqlite3_close(db); - show_email(socket, user, msgtoread); + show_email(user, msgtoread); return; } }