Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
hanterm-xf
hanterm-xf-64bit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hanterm-xf-64bit.patch of Package hanterm-xf
diff -ru hanterm-xf-2.0.4-172.orig/johabcode2.c hanterm-xf-2.0.4-172/johabcode2.c --- hanterm-xf-2.0.4-172.orig/johabcode2.c 2003-01-27 00:26:03.000000000 +0100 +++ hanterm-xf-2.0.4-172/johabcode2.c 2003-02-15 19:47:31.000000000 +0100 @@ -40,7 +40,7 @@ int johab_to_wansung(char *s, int johab) { - int in_len, out_len; + size_t in_len, out_len; char in[2]; char *in_p, *out_p; if (johab < 128) { @@ -60,7 +60,7 @@ in[1] = johab & 0xff; iconv(johab_to_wan_cd, &in_p, &in_len, &out_p, &out_len); - return 2 - out_len; + return ((int) (2 - out_len)); } int @@ -68,8 +68,8 @@ { char *out_p = s; char *in_p = johab; - int in_len = len; - int out_len = len; + size_t in_len = (size_t) len; + size_t out_len = (size_t) len; if (johab_to_wan_cd == (iconv_t) -1) { johab_to_wan_cd = iconv_open(CD_EUC_KR, CD_JOHAB); if (johab_to_wan_cd == (iconv_t) -1) { @@ -78,13 +78,13 @@ } } iconv(johab_to_wan_cd, &in_p, &in_len, &out_p, &out_len); - return len - in_len; + return ((int) (len - in_len)); } int johab_from_wansung(char *s, int wansung) { - int in_len, out_len; + size_t in_len, out_len; char in[2]; char *in_p, *out_p; if (wansung < 128) { @@ -104,7 +104,7 @@ in[1] = wansung & 0xff; iconv(wan_to_johab_cd, &in_p, &in_len, &out_p, &out_len); *out_p = 0; - return 2 - out_len; + return ((int) (2 - out_len)); } int @@ -112,8 +112,8 @@ { char *out_p = s; char *in_p = wansung; - int in_len = len; - int out_len = len; + size_t in_len = (size_t) len; + size_t out_len = (size_t) len; if (wan_to_johab_cd == (iconv_t) -1) { wan_to_johab_cd = iconv_open(CD_JOHAB, CD_EUC_KR); if (wan_to_johab_cd == (iconv_t) -1) { @@ -123,7 +123,7 @@ } iconv(wan_to_johab_cd, &in_p, &in_len, &out_p, &out_len); *out_p = 0; - return len - in_len; + return ((int) (len - in_len)); } int @@ -155,7 +155,7 @@ int johab_to_utf8(char *s, int johab) { - int in_len, out_len; + size_t in_len, out_len; char in[2]; char *in_p, *out_p; if (johab < 128) { @@ -175,5 +175,5 @@ in[1] = johab & 0xff; iconv(johab_to_utf8_cd, &in_p, &in_len, &out_p, &out_len); - return 3 - out_len; + return ((int) (3 - out_len)); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor