Code cleanup

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-03-03 15:47:02 +01:00
parent ee7f5d970b
commit d687fa16ab
33 changed files with 32 additions and 66 deletions

View File

@ -305,5 +305,3 @@ int retrieve_email_from_archive(struct session_data *sdata, FILE *dest, struct c
return 0; return 0;
} }

View File

@ -169,5 +169,3 @@ CLOSE:
return attachments; return attachments;
} }

View File

@ -76,4 +76,3 @@ void base64_encode(unsigned char *in, int inlen, char *out, int outlen){
base64_encode_block(buf, i, &out[pos]); base64_encode_block(buf, i, &out[pos]);
} }

View File

@ -304,5 +304,3 @@ void print_config(char *configfile, struct config *cfg){
fclose(f); fclose(f);
} }

View File

@ -136,4 +136,3 @@
#define S_STATUS_ERROR "error" #define S_STATUS_ERROR "error"
#endif /* _CONFIG_H */ #endif /* _CONFIG_H */

View File

@ -133,4 +133,3 @@ void digest_string(char *s, char *digest){
snprintf(digest + i*2, 2*DIGEST_LENGTH, "%02x", md[i]); snprintf(digest + i*2, 2*DIGEST_LENGTH, "%02x", md[i]);
} }

View File

@ -317,5 +317,3 @@ void extract_attachment_content(struct session_data *sdata, struct parser_state
} }

View File

@ -163,4 +163,3 @@ unsigned int DJBHash(char* str, unsigned int len){
return hash; return hash;
} }

View File

@ -285,4 +285,3 @@ struct mi htmlentities[] = {
#endif /* _HTMLENTITIES_H */ #endif /* _HTMLENTITIES_H */

View File

@ -23,4 +23,3 @@ int process_imap_folder(char *folder, struct session_data *sdata, struct data *d
void send_imap_close(struct data *data); void send_imap_close(struct data *data);
#endif /* _IMPORT_H */ #endif /* _IMPORT_H */

View File

@ -92,6 +92,3 @@ void free_list(struct list *list){
p = q; p = q;
} }
} }

View File

@ -14,4 +14,3 @@ int is_item_on_string(struct list *list, char *s);
void free_list(struct list *list); void free_list(struct list *list);
#endif /* _LIST_H */ #endif /* _LIST_H */

View File

@ -372,5 +372,3 @@ char *memcached_fetch_result(struct memcached_server *ptr, char *key, char *valu
return p; return p;
} }

View File

@ -104,7 +104,6 @@ int p_exec_stmt(struct session_data *sdata, struct sql *sql){
bind[i].buffer = sql->sql[i]; bind[i].buffer = sql->sql[i];
bind[i].is_null = 0; bind[i].is_null = 0;
} }
else { break; } else { break; }
} }

View File

@ -1055,4 +1055,3 @@ void fix_plus_sign_in_email_address(char *puf, char **at_sign, unsigned int *len
*at_sign = r; *at_sign = r;
} }
} }

View File

@ -57,5 +57,3 @@ int main(int argc, char **argv){
return 0; return 0;
} }

View File

@ -604,5 +604,3 @@ int main(int argc, char **argv){
return 0; return 0;
} }

View File

@ -54,5 +54,3 @@ int main(int argc, char **argv){
return 0; return 0;
} }

View File

@ -21,4 +21,3 @@ void initrules(struct node *xhash[]);
void clearrules(struct node *xhash[]); void clearrules(struct node *xhash[]);
#endif /* _RULES_H */ #endif /* _RULES_H */

View File

@ -56,4 +56,3 @@ signal_func *set_signal_handler(int signo, signal_func * func){
return oact.sa_handler; return oact.sa_handler;
} }

View File

@ -64,4 +64,3 @@
// LMTP responses // LMTP responses
#define LMTP_RESP_220_BANNER "220 %s LMTP\r\n" #define LMTP_RESP_220_BANNER "220 %s LMTP\r\n"

View File

@ -235,5 +235,3 @@ int remove_stored_message_files(struct session_data *sdata, struct parser_state
return 0; return 0;
} }

View File

@ -26,4 +26,3 @@ void taia_now(struct taia *t);
void taia_pack(char *s, struct taia *t); void taia_pack(char *s, struct taia *t);
#endif /* _TAI_H */ #endif /* _TAI_H */