projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GDBusMessage: fast-path decoding of fixed arrays
[platform/upstream/glib.git]
/
gio
/
gcharsetconverter.c
diff --git
a/gio/gcharsetconverter.c
b/gio/gcharsetconverter.c
index
ea60437
..
86be20e
100644
(file)
--- a/
gio/gcharsetconverter.c
+++ b/
gio/gcharsetconverter.c
@@
-13,9
+13,7
@@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
* Author: Alexander Larsson <alexl@redhat.com>
*/
*
* Author: Alexander Larsson <alexl@redhat.com>
*/
@@
-26,7
+24,6
@@
#include <errno.h>
#include <errno.h>
-#include "gcontenttypeprivate.h"
#include "ginitable.h"
#include "gioerror.h"
#include "glibintl.h"
#include "ginitable.h"
#include "gioerror.h"
#include "glibintl.h"
@@
-206,9
+203,9
@@
g_charset_converter_init (GCharsetConverter *local)
* Since: 2.24
**/
GCharsetConverter *
* Since: 2.24
**/
GCharsetConverter *
-g_charset_converter_new (const gchar
*to_charset,
- const gchar
*from_charset,
- GError
**error)
+g_charset_converter_new (const gchar *to_charset,
+ const gchar *from_charset,
+ GError **error)
{
GCharsetConverter *conv;
{
GCharsetConverter *conv;
@@
-237,15
+234,15
@@
g_charset_converter_reset (GConverter *converter)
}
static GConverterResult
}
static GConverterResult
-g_charset_converter_convert (GConverter *converter,
- const void *inbuf,
- gsize inbuf_size,
- void *outbuf,
- gsize outbuf_size,
- GConverterFlags flags,
- gsize *bytes_read,
- gsize *bytes_written,
- GError **error)
+g_charset_converter_convert (GConverter
*converter,
+ const void
*inbuf,
+ gsize
inbuf_size,
+ void
*outbuf,
+ gsize
outbuf_size,
+ GConverterFlags
flags,
+ gsize
*bytes_read,
+ gsize
*bytes_written,
+ GError
**error)
{
GCharsetConverter *conv;
gsize res;
{
GCharsetConverter *conv;
gsize res;
@@
-431,9
+428,9
@@
g_charset_converter_iface_init (GConverterIface *iface)
}
static gboolean
}
static gboolean
-g_charset_converter_initable_init (GInitable *initable,
- GCancellable *cancellable,
- GError **error)
+g_charset_converter_initable_init (GInitable
*initable,
+ GCancellable
*cancellable,
+ GError
**error)
{
GCharsetConverter *conv;
{
GCharsetConverter *conv;
@@
-448,10
+445,9
@@
g_charset_converter_initable_init (GInitable *initable,
return FALSE;
}
return FALSE;
}
- conv->iconv =
- g_iconv_open (conv->to, conv->from);
+ conv->iconv = g_iconv_open (conv->to, conv->from);
- if (conv->iconv ==
NULL
)
+ if (conv->iconv ==
(GIConv)-1
)
{
if (errno == EINVAL)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
{
if (errno == EINVAL)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,