summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-06-02 10:59:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-02 12:30:39 +0200
commitb51646c8a3a35a2728f32819a8fdeef822ff1ff2 (patch)
tree9de47393e9faa9e9c58cddeb863024a90ec22a4b
parentfc731b54cd74e6732f1e33c7cc4ed49cab0f7c90 (diff)
downloadsssd-b51646c8a3a35a2728f32819a8fdeef822ff1ff2.tar.gz
sssd-b51646c8a3a35a2728f32819a8fdeef822ff1ff2.tar.xz
sssd-b51646c8a3a35a2728f32819a8fdeef822ff1ff2.zip
TESTS: fgetc returns int, not char
We used "char c = fgetc()" where we should have used "int c = fgetc()" This bug caused errors on big-endian architectures. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/tests/sss_config-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/sss_config-tests.c b/src/tests/sss_config-tests.c
index 18ce8d8bf..1b2608978 100644
--- a/src/tests/sss_config-tests.c
+++ b/src/tests/sss_config-tests.c
@@ -261,7 +261,7 @@ check_file_content(const char *filename, const char *expected)
{
FILE *file = NULL;
size_t i;
- char c;
+ int c;
bool result;
file = fopen(filename, "r");