Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions lib/typetraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@
)


#define is_same_type(a, b) \
( \
__builtin_types_compatible_p(a, b) \
)

#define is_same_typeof(a, b) \
( \
is_same_type(typeof(a), typeof(b)) \
)


#define QChar_of(s) typeof \
( \
_Generic(s, \
Expand Down
7 changes: 2 additions & 5 deletions src/usermod.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

#include "config.h"

#ident "$Id$"

#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
Expand Down Expand Up @@ -325,8 +322,8 @@ getid_range(const char *str)
.last = type_min(id_t)
};

static_assert(is_same_type(id_t, uid_t), "");
static_assert(is_same_type(id_t, gid_t), "");
_Generic((id_t){}, uid_t: (void)0);
_Generic((id_t){}, gid_t: (void)0);

first = type_min(id_t);
last = type_max(id_t);
Expand Down
Loading