projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more crypt simplifications
[apps/madmutt.git]
/
lib-sys
/
mutt_socket.c
diff --git
a/lib-sys/mutt_socket.c
b/lib-sys/mutt_socket.c
index
78a609f
..
fa054ae
100644
(file)
--- a/
lib-sys/mutt_socket.c
+++ b/
lib-sys/mutt_socket.c
@@
-9,23
+9,13
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include <lib-lib/lib-lib.h>
-#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netdb.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
-#include <string.h>
-#include <errno.h>
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/macros.h>
+#include <lib-ui/curses.h>
#include "mutt.h"
#include "globals.h"
#include "mutt.h"
#include "globals.h"
@@
-88,7
+78,7
@@
int mutt_socket_read (CONNECTION * conn, char *buf, ssize_t len)
return rc;
}
return rc;
}
-int mutt_socket_write
_d (CONNECTION * conn, const char *buf, int dbg
)
+int mutt_socket_write
(CONNECTION * conn, const char *buf
)
{
int rc;
int len;
{
int rc;
int len;
@@
-132,8
+122,7
@@
int mutt_socket_readchar (CONNECTION * conn, char *c)
return 1;
}
return 1;
}
-int mutt_socket_readln_d (char *buf, ssize_t buflen, CONNECTION * conn,
- int dbg)
+int mutt_socket_readln(char *buf, ssize_t buflen, CONNECTION * conn)
{
char ch;
ssize_t i;
{
char ch;
ssize_t i;