From 6e9ad5ceaea50e16a2534e191f65ccedbff3bc8b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 14 Jul 2013 19:28:08 -0400 Subject: [PATCH] Fix minor type issues in krad tests Use unsigned char for test encodings, since the initializers use values greater than 127. --- src/lib/krad/t_attr.c | 2 +- src/lib/krad/t_attrset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/krad/t_attr.c b/src/lib/krad/t_attr.c index e80d77b23b..eb2a780c89 100644 --- a/src/lib/krad/t_attr.c +++ b/src/lib/krad/t_attr.c @@ -29,7 +29,7 @@ #include "t_test.h" -const static char encoded[] = { +const static unsigned char encoded[] = { 0xba, 0xfc, 0xed, 0x50, 0xe1, 0xeb, 0xa6, 0xc3, 0xc1, 0x75, 0x20, 0xe9, 0x10, 0xce, 0xc2, 0xcb }; diff --git a/src/lib/krad/t_attrset.c b/src/lib/krad/t_attrset.c index afae5e4f0f..7928335ca4 100644 --- a/src/lib/krad/t_attrset.c +++ b/src/lib/krad/t_attrset.c @@ -34,7 +34,7 @@ const static unsigned char auth[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -const static char encpass[] = { +const static unsigned char encpass[] = { 0x58, 0x8d, 0xff, 0xda, 0x37, 0xf9, 0xe4, 0xca, 0x19, 0xae, 0x49, 0xb7, 0x16, 0x6d, 0x58, 0x27 }; -- 2.47.2