From 654da2ffb5abf2afe9532f1d0cb77ed88f8a97cc Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 28 Jan 2014 21:40:13 +0000 Subject: move utf8 conversion routines to use nserror instead of their own error enum --- atari/toolbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'atari/toolbar.c') diff --git a/atari/toolbar.c b/atari/toolbar.c index fd9051dd9..8044d160d 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -740,11 +740,11 @@ bool toolbar_key_input(struct s_toolbar *tb, short nkc) int clip_length = strlen( clip ); if ( clip_length > 0 ) { char *utf8; - utf8_convert_ret res; + nserror res; /* Clipboard is in local encoding so * convert to UTF8 */ res = utf8_from_local_encoding( clip, clip_length, &utf8 ); - if ( res == UTF8_CONVERT_OK ) { + if ( res == NSERROR_OK ) { toolbar_set_url(tb, utf8); free(utf8); ret = true; -- cgit v1.2.3