openbsd-ports/databases/gq/patches/patch-src_encode_c
ajacoutot ad77f30d1f - tweak .desktop file so that we have an icon to show in the GNOME menu
- precise license marker
- add sysutils to CATEGORIES
- regen patches and PLIST while here

ok mbalmer@
2008-10-12 17:36:03 +00:00

36 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_encode_c,v 1.2 2008/10/12 17:36:03 ajacoutot Exp $
--- src/encode.c.orig Wed Oct 8 23:21:16 2003
+++ src/encode.c Sun Oct 12 17:01:58 2008
@@ -53,14 +53,14 @@ const char *decode_string(char *native_string, const g
size_t len)
{
#if defined(HAVE_ICONV)
- ICONV_CONST char *in;
+ const char *in;
char *out;
size_t outlen;
iconv_t conv;
conv = iconv_open(gq_codeset, LDAP_CODESET);
if (conv != (iconv_t) -1) {
- in = (ICONV_CONST char *) ldap_string;
+ in = (const char *) ldap_string;
out = native_string;
/* len = strlen(in); */
outlen = len;
@@ -94,12 +94,12 @@ const gchar *encode_string(gchar *ldap_string, const g
size_t len)
{
#if defined(HAVE_ICONV)
- ICONV_CONST char *in;
+ const char *in;
char *out;
size_t outlen;
iconv_t conv;
- in = (ICONV_CONST char *) native_string;
+ in = (const char *) native_string;
out = ldap_string;
/* len = strlen(in); */
outlen = len * 2 + 1; /* Worst case */