[gnome-desktop] Use GLib fixed-width types
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Use GLib fixed-width types
- Date: Wed, 16 Sep 2020 16:12:21 +0000 (UTC)
commit 65c0d7911bb19b0f0534b2845838b0cc87f39c59
Author: Christopher Chavez <chrischavez gmx us>
Date: Wed Sep 16 07:47:49 2020 +0000
Use GLib fixed-width types
…instead of C99 fixed-width types
Fixes: #168
libgnome-desktop/gnome-desktop-thumbnail-script.c | 8 ++++----
libgnome-desktop/gnome-rr.h | 2 +-
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]