mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Use C11 types instead of GLib types
This is an almost entirely mechanical* conversion from (for example) `gint` → `int`, `guint8` → `uint8_t`, etc. It is not entirely complete, as many GLib functions are still used in libsysprof-capture, which necessitate some use of GLib types. It also avoids renaming `gboolean` → `bool` as that’s a slightly more controversial change which will happen in the following commit. *Code was manually realigned afterwards. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -77,7 +77,7 @@
|
||||
* Returns: An fd if successful; otherwise -1 and errno is set.
|
||||
*/
|
||||
int
|
||||
sysprof_memfd_create (const gchar *name)
|
||||
sysprof_memfd_create (const char *name)
|
||||
{
|
||||
#ifdef __NR_memfd_create
|
||||
if (name == NULL)
|
||||
@ -116,7 +116,7 @@ sysprof_memfd_create (const gchar *name)
|
||||
*
|
||||
* Since: 3.36
|
||||
*/
|
||||
gsize
|
||||
size_t
|
||||
sysprof_getpagesize (void)
|
||||
{
|
||||
return _sysprof_getpagesize ();
|
||||
|
||||
Reference in New Issue
Block a user