aboutsummaryrefslogtreecommitdiffstats
path: root/cram.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
commit05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (patch)
tree898185b02c06b47450c88fc8731cf508c056568d /cram.c
parente9c99cb0a353ed18bd7c6ea6e93ec2fea326bbb4 (diff)
downloadfetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.gz
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.bz2
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.zip
Fix lots of warnings, most around string literals...
...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements.
Diffstat (limited to 'cram.c')
-rw-r--r--cram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cram.c b/cram.c
index ee97475a..16591b8d 100644
--- a/cram.c
+++ b/cram.c
@@ -17,8 +17,8 @@
#include "i18n.h"
#include "md5.h"
-void hmac_md5 (char *password, size_t pass_len,
- char *challenge, size_t chal_len,
+void hmac_md5 (const char *password, size_t pass_len,
+ const char *challenge, size_t chal_len,
unsigned char *response, size_t resp_len)
{
int i;
@@ -60,7 +60,7 @@ void hmac_md5 (char *password, size_t pass_len,
MD5Final (response, &ctx);
}
-int do_cram_md5 (int sock, char *command, struct query *ctl, char *strip)
+int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *strip)
/* authenticate as per RFC2195 */
{
int result;