From 849476fb75fde09bfcfbea60192d505112051744 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 2 Oct 2019 12:56:10 -0500 Subject: [PATCH] thumbnailer : use cross-platform eina_htonl() instead of htonl() Test Plan: compilation Reviewers: stephenmhouston Reviewed By: stephenmhouston Differential Revision: https://phab.enlightenment.org/D9809 --- src/bin/ephoto_thumbnailer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/ephoto_thumbnailer.c b/src/bin/ephoto_thumbnailer.c index 748f527..bc65b98 100644 --- a/src/bin/ephoto_thumbnailer.c +++ b/src/bin/ephoto_thumbnailer.c @@ -670,11 +670,11 @@ e_sha1_sum(unsigned char *data, int size, unsigned char *dst) } } - t = htonl(digest[0]); digest[0] = t; - t = htonl(digest[1]); digest[1] = t; - t = htonl(digest[2]); digest[2] = t; - t = htonl(digest[3]); digest[3] = t; - t = htonl(digest[4]); digest[4] = t; + t = eina_htonl(digest[0]); digest[0] = t; + t = eina_htonl(digest[1]); digest[1] = t; + t = eina_htonl(digest[2]); digest[2] = t; + t = eina_htonl(digest[3]); digest[3] = t; + t = eina_htonl(digest[4]); digest[4] = t; memcpy(dst, digest, 5 * 4); return 1;