diff options
author | marha <marha@users.sourceforge.net> | 2012-03-05 09:59:38 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-03-05 09:59:38 +0100 |
commit | ffe218bbb0ffa6d2a7f7cbf6b1f81797e667183a (patch) | |
tree | 233b818e67de2073647e46e91ac688c6b43d5917 /xorg-server/fonts.src/font-util/ucs2any.c | |
parent | 15a500d3edb03668b43cc6898fafcda024d0f006 (diff) | |
download | vcxsrv-ffe218bbb0ffa6d2a7f7cbf6b1f81797e667183a.tar.gz vcxsrv-ffe218bbb0ffa6d2a7f7cbf6b1f81797e667183a.tar.bz2 vcxsrv-ffe218bbb0ffa6d2a7f7cbf6b1f81797e667183a.zip |
libfontenc xserver pixman mesa git update 5 Mar 2012
font-util-1.3.0
xclock-1.0.6
libXfont-1.4.5
inputproto-2.2
Diffstat (limited to 'xorg-server/fonts.src/font-util/ucs2any.c')
-rw-r--r-- | xorg-server/fonts.src/font-util/ucs2any.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xorg-server/fonts.src/font-util/ucs2any.c b/xorg-server/fonts.src/font-util/ucs2any.c index a6e8fb6bb..0904fa02b 100644 --- a/xorg-server/fonts.src/font-util/ucs2any.c +++ b/xorg-server/fonts.src/font-util/ucs2any.c @@ -173,7 +173,7 @@ typedef struct { } da_t; static da_t * -da_new(char *name) +da_new(const char *name) { da_t *da; @@ -246,7 +246,7 @@ da_add(da_t *da, int key, void *value) } static void -da_add_str(da_t *da, int key, char *value) +da_add_str(da_t *da, int key, const char *value) { da_add(da, key, value?zstrdup(value):NULL); } @@ -447,8 +447,8 @@ usage(void) { static int chars_compare(const void *aa, const void *bb) { - int a = *(int *)aa; - int b = *(int *)bb; + int a = *(const int *)aa; + int b = *(const int *)bb; return a - b; } @@ -737,7 +737,6 @@ main(int argc, char *argv[]) if (p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) { ucs = strtol(p+2, &endp, 16); if (*endp == '\0') goto bad; - p = endp; } else goto bad; |