[gvfs] afp: fixup some indenting issues



commit 3e24cf21d9436e92758dd5931d18f1bc625ccfd4
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Fri Jun 24 11:02:15 2011 +0200

    afp: fixup some indenting issues

 daemon/gvfsafpconnection.c    |    8 ++--
 daemon/gvfsafpconnection.h    |    8 +++--
 daemon/gvfsbackendafp.c       |   60 +++++++++++++++++-----------------
 daemon/gvfsbackendafpbrowse.c |   70 ++++++++++++++++++++--------------------
 4 files changed, 74 insertions(+), 72 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index 7865363..8f1f845 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -1247,16 +1247,16 @@ g_vfs_afp_connection_finalize (GObject *object)
   if (priv->conn)
     g_object_unref (priv->conn);
 
-	G_OBJECT_CLASS (g_vfs_afp_connection_parent_class)->finalize (object);
+  G_OBJECT_CLASS (g_vfs_afp_connection_parent_class)->finalize (object);
 }
 
 static void
 g_vfs_afp_connection_class_init (GVfsAfpConnectionClass *klass)
 {
-	GObjectClass* object_class = G_OBJECT_CLASS (klass);
+  GObjectClass* object_class = G_OBJECT_CLASS (klass);
 
   g_type_class_add_private (klass, sizeof (GVfsAfpConnectionPrivate));
-  
-	object_class->finalize = g_vfs_afp_connection_finalize;
+
+  object_class->finalize = g_vfs_afp_connection_finalize;
 }
 
diff --git a/daemon/gvfsafpconnection.h b/daemon/gvfsafpconnection.h
index 74cf850..c877359 100644
--- a/daemon/gvfsafpconnection.h
+++ b/daemon/gvfsafpconnection.h
@@ -173,7 +173,9 @@ struct _GVfsAfpName
   gint ref_count;
 };
 
-GVfsAfpName* g_vfs_afp_name_new              (guint32 text_encoding, gchar *str, gsize len);
+GVfsAfpName* g_vfs_afp_name_new              (guint32 text_encoding,
+                                              gchar *str,
+                                              gsize len);
 
 void         g_vfs_afp_name_unref            (GVfsAfpName *afp_name);
 void         g_vfs_afp_name_ref              (GVfsAfpName *afp_name);
@@ -264,12 +266,12 @@ typedef struct _GVfsAfpConnectionPrivate GVfsAfpConnectionPrivate;
 
 struct _GVfsAfpConnectionClass
 {
-	GObjectClass parent_class;
+  GObjectClass parent_class;
 };
 
 struct _GVfsAfpConnection
 {
-	GObject parent_instance;
+  GObject parent_instance;
 
   GVfsAfpConnectionPrivate *priv;
 };
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index f5937b4..1c3a24b 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -1167,19 +1167,19 @@ try_mount (GVfsBackend *backend,
            GMountSource *mount_source,
            gboolean is_automount)
 {
-	GVfsBackendAfp *afp_backend = G_VFS_BACKEND_AFP (backend);
-	
-	const char *host, *volume, *portstr, *user;
-	guint16 port = 548;
-	
-	host = g_mount_spec_get (mount_spec, "host");
-	if (host == NULL)
-		{
-			g_vfs_job_failed (G_VFS_JOB (job),
-			                  G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-			                  _("No hostname specified"));
-			return TRUE;
-    }
+  GVfsBackendAfp *afp_backend = G_VFS_BACKEND_AFP (backend);
+
+  const char *host, *volume, *portstr, *user;
+  guint16 port = 548;
+
+  host = g_mount_spec_get (mount_spec, "host");
+  if (host == NULL)
+  {
+    g_vfs_job_failed (G_VFS_JOB (job),
+                      G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
+                      _("No hostname specified"));
+    return TRUE;
+  }
 
   volume = g_mount_spec_get (mount_spec, "volume");
   if (volume == NULL)
@@ -1190,19 +1190,19 @@ try_mount (GVfsBackend *backend,
     return TRUE;
   }
   afp_backend->volume = g_strdup (volume);
-  
-	portstr = g_mount_spec_get (mount_spec, "port");
-	if (portstr != NULL)
-		{
-			port = atoi (portstr);
-		}
-
-	afp_backend->addr = G_NETWORK_ADDRESS (g_network_address_new (host, port));
-	
-	user = g_mount_spec_get (mount_spec, "user");
-	afp_backend->user = g_strdup (user);
-	
-	return FALSE;
+
+  portstr = g_mount_spec_get (mount_spec, "port");
+  if (portstr != NULL)
+  {
+    port = atoi (portstr);
+  }
+
+  afp_backend->addr = G_NETWORK_ADDRESS (g_network_address_new (host, port));
+
+  user = g_mount_spec_get (mount_spec, "user");
+  afp_backend->user = g_strdup (user);
+
+  return FALSE;
 }
 
 static void
@@ -1233,12 +1233,12 @@ g_vfs_backend_afp_finalize (GObject *object)
 static void
 g_vfs_backend_afp_class_init (GVfsBackendAfpClass *klass)
 {
-	GObjectClass *object_class = G_OBJECT_CLASS (klass);
-	GVfsBackendClass *backend_class = G_VFS_BACKEND_CLASS (klass);
+  GObjectClass *object_class = G_OBJECT_CLASS (klass);
+  GVfsBackendClass *backend_class = G_VFS_BACKEND_CLASS (klass);
 
-	object_class->finalize = g_vfs_backend_afp_finalize;
+  object_class->finalize = g_vfs_backend_afp_finalize;
 
-	backend_class->try_mount = try_mount;
+  backend_class->try_mount = try_mount;
   backend_class->mount = do_mount;
   backend_class->try_query_info = try_query_info;
   backend_class->try_enumerate = try_enumerate;
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c
index 3f2b709..13ff99d 100644
--- a/daemon/gvfsbackendafpbrowse.c
+++ b/daemon/gvfsbackendafpbrowse.c
@@ -49,10 +49,10 @@ struct _GVfsBackendAfpBrowseClass
 
 struct _GVfsBackendAfpBrowse
 {
-	GVfsBackend parent_instance;
+  GVfsBackend parent_instance;
 
-	GNetworkAddress    *addr;
-	char               *user;
+  GNetworkAddress    *addr;
+  char               *user;
 
   GMountTracker      *mount_tracker;
   GVfsAfpServer      *server;
@@ -496,32 +496,32 @@ try_mount (GVfsBackend *backend,
            GMountSource *mount_source,
            gboolean is_automount)
 {
-	GVfsBackendAfpBrowse *afp_backend = G_VFS_BACKEND_AFP_BROWSE (backend);
-	
-	const char *host, *portstr, *user;
-	guint16 port = 548;
-	
-	host = g_mount_spec_get (mount_spec, "host");
-	if (host == NULL)
-		{
-			g_vfs_job_failed (G_VFS_JOB (job),
-			                  G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-			                  _("No hostname specified"));
-			return TRUE;
-		}
-
-	portstr = g_mount_spec_get (mount_spec, "port");
-	if (portstr != NULL)
-		{
-			port = atoi (portstr);
-		}
-
-	afp_backend->addr = G_NETWORK_ADDRESS (g_network_address_new (host, port));
-	
-	user = g_mount_spec_get (mount_spec, "user");
-	afp_backend->user = g_strdup (user);
-	
-	return FALSE;
+  GVfsBackendAfpBrowse *afp_backend = G_VFS_BACKEND_AFP_BROWSE (backend);
+
+  const char *host, *portstr, *user;
+  guint16 port = 548;
+
+  host = g_mount_spec_get (mount_spec, "host");
+  if (host == NULL)
+  {
+    g_vfs_job_failed (G_VFS_JOB (job),
+                      G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
+                      _("No hostname specified"));
+    return TRUE;
+  }
+
+  portstr = g_mount_spec_get (mount_spec, "port");
+  if (portstr != NULL)
+  {
+    port = atoi (portstr);
+  }
+
+  afp_backend->addr = G_NETWORK_ADDRESS (g_network_address_new (host, port));
+
+  user = g_mount_spec_get (mount_spec, "user");
+  afp_backend->user = g_strdup (user);
+
+  return FALSE;
 }
 
 static void
@@ -550,19 +550,19 @@ g_vfs_backend_afp_browse_finalize (GObject *object)
   g_free (afp_backend->user);
 
   g_slist_free_full (afp_backend->volumes, (GDestroyNotify)volume_data_free);
-  
-	G_OBJECT_CLASS (g_vfs_backend_afp_browse_parent_class)->finalize (object);
+
+  G_OBJECT_CLASS (g_vfs_backend_afp_browse_parent_class)->finalize (object);
 }
 
 static void
 g_vfs_backend_afp_browse_class_init (GVfsBackendAfpBrowseClass *klass)
 {
-	GObjectClass *object_class = G_OBJECT_CLASS (klass);
-	GVfsBackendClass *backend_class = G_VFS_BACKEND_CLASS (klass);
+  GObjectClass *object_class = G_OBJECT_CLASS (klass);
+  GVfsBackendClass *backend_class = G_VFS_BACKEND_CLASS (klass);
 
-	object_class->finalize = g_vfs_backend_afp_browse_finalize;
+  object_class->finalize = g_vfs_backend_afp_browse_finalize;
 
-	backend_class->try_mount = try_mount;
+  backend_class->try_mount = try_mount;
   backend_class->mount = do_mount;
   backend_class->try_query_info = try_query_info;
   backend_class->try_enumerate = try_enumerate;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]