projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unset all MH environment variables that aren't set below.
[mmh]
/
uip
/
popsbr.c
diff --git
a/uip/popsbr.c
b/uip/popsbr.c
index
2d03efd
..
feb7aa0
100644
(file)
--- a/
uip/popsbr.c
+++ b/
uip/popsbr.c
@@
-343,6
+343,8
@@
sasl_get_user(void *context, int id, const char **result, unsigned *len)
static int
sasl_get_pass(sasl_conn_t *conn, void *context, int id, sasl_secret_t **psecret)
{
static int
sasl_get_pass(sasl_conn_t *conn, void *context, int id, sasl_secret_t **psecret)
{
+ NMH_UNUSED (conn);
+
struct pass_context *p_context = (struct pass_context *) context;
char *pass = NULL;
int len;
struct pass_context *p_context = (struct pass_context *) context;
char *pass = NULL;
int len;
@@
-416,6
+418,11
@@
int
pop_init (char *host, char *port, char *user, char *pass, char *proxy,
int snoop, int sasl, char *mech)
{
pop_init (char *host, char *port, char *user, char *pass, char *proxy,
int snoop, int sasl, char *mech)
{
+#ifndef CYRUS_SASL
+ NMH_UNUSED (sasl);
+ NMH_UNUSED (mech);
+#endif /* ! CYRUS_SASL */
+
int fd1, fd2;
char buffer[BUFSIZ];
int fd1, fd2;
char buffer[BUFSIZ];
@@
-893,7
+900,7
@@
static int
sasl_fgetc(FILE *f)
{
static unsigned char *buffer = NULL, *ptr;
sasl_fgetc(FILE *f)
{
static unsigned char *buffer = NULL, *ptr;
- static int size = 0;
+ static unsigned int size = 0;
static int cnt = 0;
unsigned int retbufsize = 0;
int cc, result;
static int cnt = 0;
unsigned int retbufsize = 0;
int cc, result;