[gcab] trivial: Be consistent with tabs and spaces
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab] trivial: Be consistent with tabs and spaces
- Date: Tue, 12 Dec 2017 17:11:10 +0000 (UTC)
commit 8675313d5629d4674eb6c34f90935928ba3856c7
Author: Richard Hughes <richard hughsie com>
Date: Tue Dec 12 14:57:05 2017 +0000
trivial: Be consistent with tabs and spaces
libgcab/cabinet.h | 4 ++--
libgcab/gcab-cabinet.c | 6 +++---
libgcab/gcab-folder.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libgcab/cabinet.h b/libgcab/cabinet.h
index b50088b..16c7a0f 100644
--- a/libgcab/cabinet.h
+++ b/libgcab/cabinet.h
@@ -27,8 +27,8 @@ typedef struct cdata cdata_t;
#define DATABLOCKSIZE 32768
-#define CFO_START 0x24 /* folder offset */
-#define CFI_START 0x2C /* file offset */
+#define CFO_START 0x24 /* folder offset */
+#define CFI_START 0x2C /* file offset */
struct cheader
{
diff --git a/libgcab/gcab-cabinet.c b/libgcab/gcab-cabinet.c
index a0c2843..944bec1 100644
--- a/libgcab/gcab-cabinet.c
+++ b/libgcab/gcab-cabinet.c
@@ -78,12 +78,12 @@ gcab_cabinet_set_property (GObject *object, guint prop_id, const GValue *value,
if (self->reserved)
g_byte_array_unref (self->reserved);
self->reserved = g_value_dup_boxed (value);
- break;
+ break;
case PROP_SIGNATURE:
if (self->signature)
g_byte_array_unref (self->signature);
self->signature = g_value_dup_boxed (value);
- break;
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -99,7 +99,7 @@ gcab_cabinet_get_property (GObject *object, guint prop_id, GValue *value, GParam
switch (prop_id) {
case PROP_RESERVED:
g_value_set_boxed (value, self->reserved);
- break;
+ break;
case PROP_SIGNATURE:
g_value_set_boxed (value, gcab_cabinet_get_signature (self, NULL, NULL));
break;
diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c
index 2df51fd..000f234 100644
--- a/libgcab/gcab-folder.c
+++ b/libgcab/gcab-folder.c
@@ -75,7 +75,7 @@ gcab_folder_set_property (GObject *object, guint prop_id, const GValue *value, G
if (self->reserved)
g_byte_array_unref (self->reserved);
self->reserved = g_value_dup_boxed (value);
- break;
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -97,7 +97,7 @@ gcab_folder_get_property (GObject *object, guint prop_id, GValue *value, GParamS
break;
case PROP_RESERVED:
g_value_set_boxed (value, self->reserved);
- break;
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]