krb5 commit: Fix minor type issues in krad tests
Greg Hudson
ghudson at MIT.EDU
Mon Jul 15 00:43:07 EDT 2013
https://github.com/krb5/krb5/commit/6e9ad5ceaea50e16a2534e191f65ccedbff3bc8b
commit 6e9ad5ceaea50e16a2534e191f65ccedbff3bc8b
Author: Greg Hudson <ghudson at mit.edu>
Date: Sun Jul 14 19:28:08 2013 -0400
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 e80d77b..eb2a780 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 afae5e4..7928335 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
};
More information about the cvs-krb5
mailing list