util: Fix code style

The C code introduced in 49d8ff38e did not follow
GNOME Shell's C code style. This commit adjusts it
to comply with the correct code style.
This commit is contained in:
Georges Basile Stavracas Neto 2018-07-30 21:17:44 -03:00
parent 49d8ff38e7
commit 2991f9f102

View File

@ -524,7 +524,8 @@ shell_util_composite_capture_images (ClutterCapture *captures,
#ifndef HAVE_FDWALK #ifndef HAVE_FDWALK
static int static int
fdwalk (int (*cb)(void *data, int fd), void *data) fdwalk (int (*cb)(void *data, int fd),
void *data)
{ {
gint open_max; gint open_max;
gint fd; gint fd;
@ -537,10 +538,12 @@ fdwalk (int (*cb)(void *data, int fd), void *data)
#ifdef __linux__ #ifdef __linux__
DIR *d; DIR *d;
if ((d = opendir("/proc/self/fd"))) { if ((d = opendir("/proc/self/fd")))
{
struct dirent *de; struct dirent *de;
while ((de = readdir(d))) { while ((de = readdir(d)))
{
glong l; glong l;
gchar *e = NULL; gchar *e = NULL;
@ -589,7 +592,8 @@ fdwalk (int (*cb)(void *data, int fd), void *data)
#endif #endif
static int static int
check_cloexec(void *data, gint fd) check_cloexec (void *data,
gint fd)
{ {
int r; int r;