X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funinorm%2Fu-normcoll.h;h=c96b80a6fbaea2dc2ff14825598b2bc98aa2ce33;hb=4779b635ef35c7b0bc4044fcb5bc746d06f158c4;hp=a8bf29ca8ee51f71b0ac75ad254b99cbe5a7dbbe;hpb=4d0344cf0ca59b3d0e8e8396af65de1c50e06d9e;p=gnulib.git diff --git a/lib/uninorm/u-normcoll.h b/lib/uninorm/u-normcoll.h index a8bf29ca8..c96b80a6f 100644 --- a/lib/uninorm/u-normcoll.h +++ b/lib/uninorm/u-normcoll.h @@ -1,5 +1,5 @@ /* Locale dependent, normalization insensitive comparison of Unicode strings. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2013 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This program is free software: you can redistribute it and/or modify it @@ -17,7 +17,7 @@ int FUNC (const UNIT *s1, size_t n1, const UNIT *s2, size_t n2, - uninorm_t nf, int *result) + uninorm_t nf, int *resultp) { char buf1[2048]; char buf2[2048]; @@ -40,17 +40,17 @@ FUNC (const UNIT *s1, size_t n1, const UNIT *s2, size_t n2, if (transformed2 == NULL) { if (transformed1 != buf1) - { - int saved_errno = errno; - free (transformed1); - errno = saved_errno; - } + { + int saved_errno = errno; + free (transformed1); + errno = saved_errno; + } return -1; } /* Compare the transformed strings. */ cmp = memcmp2 (transformed1, transformed1_length, - transformed2, transformed2_length); + transformed2, transformed2_length); if (cmp < 0) cmp = -1; else if (cmp > 0) @@ -60,6 +60,6 @@ FUNC (const UNIT *s1, size_t n1, const UNIT *s2, size_t n2, free (transformed2); if (transformed1 != buf1) free (transformed1); - *result = cmp; + *resultp = cmp; return 0; }