Rename pop_query_d to pop_query and remove useless arg
[apps/madmutt.git] / pop / pop.h
index edde8b7..6e857c0 100644 (file)
--- a/pop/pop.h
+++ b/pop/pop.h
@@ -11,9 +11,9 @@
 #define _POP_H 1
 
 #include <lib-ui/curses.h>
+#include <lib-sys/mutt_socket.h>
 
 #include "mx.h"
-#include "mutt_socket.h"
 
 #define POP_PORT 110
 #define POP_SSL_PORT 995
@@ -40,7 +40,7 @@ typedef enum {
 } pop_auth_res_t;
 
 typedef struct {
-  unsigned int index;
+  int index;
   char *path;
 } POP_CACHE;
 
@@ -92,11 +92,10 @@ int pop_authenticate (POP_DATA *);
 void pop_apop_timestamp (POP_DATA *, char *);
 
 /* pop_lib.c */
-#define pop_query(A,B,C) pop_query_d(A,B,C,NULL)
 int pop_parse_path (const char *, ACCOUNT *);
 int pop_connect (POP_DATA *);
 pop_query_status pop_open_connection (POP_DATA *);
-pop_query_status pop_query_d (POP_DATA *, char *, size_t, const char *);
+pop_query_status pop_query (POP_DATA *, char *, size_t);
 pop_query_status pop_fetch_data (POP_DATA *, const char *, progress_t*,
                                  int (*funct) (char *, void *), void *);
 pop_query_status pop_reconnect (CONTEXT *);