summaryrefslogtreecommitdiff
path: root/pppd/plugins
diff options
context:
space:
mode:
authorEivind Næss <eivnaes@yahoo.com>2021-09-23 07:59:51 -0700
committerEivind Næss <eivnaes@yahoo.com>2021-09-23 07:59:51 -0700
commit6f69f0d9fdbfe648e55dbfa81a248ff3f6bb3dd4 (patch)
tree638ff4825cc1966e6a1bf4b2e28508037ed95cec /pppd/plugins
parent275ccb0d931cfcb58a9b0c1f1b8c435a657b38f9 (diff)
downloadppp-6f69f0d9fdbfe648e55dbfa81a248ff3f6bb3dd4.tar.gz
Fixing CLang [-Wpointer-sign] warning in winbind.c
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppd/plugins')
-rw-r--r--pppd/plugins/winbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pppd/plugins/winbind.c b/pppd/plugins/winbind.c
index 86b5198..76db234 100644
--- a/pppd/plugins/winbind.c
+++ b/pppd/plugins/winbind.c
@@ -167,7 +167,7 @@ plugin_init(void)
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-size_t strhex_to_str(char *p, size_t len, const char *strhex)
+size_t strhex_to_str(unsigned char *p, size_t len, const char *strhex)
{
size_t i;
size_t num_chars = 0;
@@ -527,7 +527,7 @@ winbind_chap_verify(char *user, char *ourname, int id,
char *domain;
char *username;
char *p;
- char saresponse[MS_AUTH_RESPONSE_LENGTH+1];
+ unsigned char saresponse[MS_AUTH_RESPONSE_LENGTH+1];
/* The first byte of each of these strings contains their length */
challenge_len = *challenge++;