summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Chavez <chrischavez@gmx.us>2020-09-16 07:47:49 +0000
committerChristopher Chavez <chrischavez@gmx.us>2020-09-16 07:47:49 +0000
commit65c0d7911bb19b0f0534b2845838b0cc87f39c59 (patch)
tree2bc437a397ba2ad69477fea5d20b559166552ac7
parente4a843c97d87a4bd9780d0b2f031a97fc7516425 (diff)
downloadgnome-desktop-65c0d7911bb19b0f0534b2845838b0cc87f39c59.tar.gz
Use GLib fixed-width types
…instead of C99 fixed-width types Fixes: #168
-rw-r--r--libgnome-desktop/gnome-desktop-thumbnail-script.c8
-rw-r--r--libgnome-desktop/gnome-rr.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index 02776cd2..cfbbad04 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -238,10 +238,10 @@ flatpak_get_arch (void)
}
/* From https://github.com/flatpak/flatpak/blob/master/common/flatpak-run.c */
-static const uint32_t seccomp_x86_64_extra_arches[] = { SCMP_ARCH_X86, 0, };
+static const guint32 seccomp_x86_64_extra_arches[] = { SCMP_ARCH_X86, 0, };
#ifdef SCMP_ARCH_AARCH64
-static const uint32_t seccomp_aarch64_extra_arches[] = { SCMP_ARCH_ARM, 0 };
+static const guint32 seccomp_aarch64_extra_arches[] = { SCMP_ARCH_ARM, 0 };
#endif
static inline void
@@ -379,8 +379,8 @@ setup_seccomp (GPtrArray *argv_array,
if (arch != NULL)
{
- uint32_t arch_id = 0;
- const uint32_t *extra_arches = NULL;
+ guint32 arch_id = 0;
+ const guint32 *extra_arches = NULL;
if (strcmp (arch, "i386") == 0)
{
diff --git a/libgnome-desktop/gnome-rr.h b/libgnome-desktop/gnome-rr.h
index 111bab3f..7b5c92d4 100644
--- a/libgnome-desktop/gnome-rr.h
+++ b/libgnome-desktop/gnome-rr.h
@@ -75,7 +75,7 @@ typedef struct {
* Conversion matrix in S31.32 sign-magnitude (not two's complement!)
* format.
*/
- uint64_t matrix[9];
+ guint64 matrix[9];
} GnomeRRCTM;
/* Error codes */