okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=849476fb75fde09bfcfbea60192d505112051744

commit 849476fb75fde09bfcfbea60192d505112051744
Author: Vincent Torri <[email protected]>
Date:   Wed Oct 2 12:56:10 2019 -0500

    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;

-- 


Reply via email to