diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-08-02 11:00:07 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-08-02 11:00:07 +0000 |
commit | 4836abe602181cc92ce99ef7cb4a78ba9447a032 (patch) | |
tree | a624fc3742a2fd7dd37857c6127abc7e7ea4da7a /daemon/soup-output-stream.c | |
parent | ad7695f9ccd2435b034094ad03aa229b4d4ba60e (diff) | |
download | gvfs-4836abe602181cc92ce99ef7cb4a78ba9447a032.tar.gz |
Use g_set_error_literal where appropriate. Bug #539167.
svn path=/trunk/; revision=1847
Diffstat (limited to 'daemon/soup-output-stream.c')
-rw-r--r-- | daemon/soup-output-stream.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/soup-output-stream.c b/daemon/soup-output-stream.c index 29e41590..86ff8a43 100644 --- a/daemon/soup-output-stream.c +++ b/daemon/soup-output-stream.c @@ -239,8 +239,8 @@ set_error_if_http_failed (SoupMessage *msg, GError **error) { if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) { - g_set_error (error, SOUP_HTTP_ERROR, - msg->status_code, "%s", msg->reason_phrase); + g_set_error_literal (error, SOUP_HTTP_ERROR, + msg->status_code, msg->reason_phrase); return TRUE; } return FALSE; @@ -256,8 +256,8 @@ soup_output_stream_write (GOutputStream *stream, SoupOutputStreamPrivate *priv = SOUP_OUTPUT_STREAM_GET_PRIVATE (stream); if (priv->size > 0 && priv->offset + count > priv->size) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NO_SPACE, - "Write would exceed caller-defined file size"); + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NO_SPACE, + "Write would exceed caller-defined file size"); return -1; } @@ -274,8 +274,8 @@ soup_output_stream_close (GOutputStream *stream, SoupOutputStreamPrivate *priv = SOUP_OUTPUT_STREAM_GET_PRIVATE (stream); if (priv->size > 0 && priv->offset != priv->size) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NO_SPACE, - "File is incomplete"); + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NO_SPACE, + "File is incomplete"); return -1; } |