X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgdummyfile.c;h=4ac3bd9b36ef7382a04cd9a81e45e1e8e1167a9f;hb=2138deb07ebb7d7e541c0cd35b966e107d1bf800;hp=7d6e763d0837819eb03f8306bf31540a6bced9f7;hpb=65cc5d895ae125b09f2403761f434fd78ef05af7;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gdummyfile.c b/gio/gdummyfile.c index 7d6e763..4ac3bd9 100644 --- a/gio/gdummyfile.c +++ b/gio/gdummyfile.c @@ -13,9 +13,7 @@ * 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 . * * Author: Alexander Larsson */ @@ -27,15 +25,11 @@ #include #include #include -#ifdef HAVE_UNISTD_H -#include -#endif #include #include "gdummyfile.h" #include "gfile.h" -#include "gioalias.h" static void g_dummy_file_file_iface_init (GFileIface *iface); @@ -105,12 +99,6 @@ g_dummy_file_init (GDummyFile *dummy) { } -/** - * g_dummy_file_new: - * @uri: Universal Resource Identifier for the dummy file object. - * - * Returns: a new #GFile. - **/ GFile * _g_dummy_file_new (const char *uri) { @@ -690,16 +678,13 @@ is_valid (char c, const char *reserved_chars_allowed) } static void -g_string_append_encoded (GString *string, +g_string_append_encoded (GString *string, const char *encoded, const char *reserved_chars_allowed) { unsigned char c; - const char *end; static const gchar hex[16] = "0123456789ABCDEF"; - end = encoded + strlen (encoded); - while ((c = *encoded) != 0) { if (is_valid (c, reserved_chars_allowed))