diff options
author | Titouan Christophe <titouan.christophe@railnova.eu> | 2020-05-04 14:11:43 +0200 |
---|---|---|
committer | Titouan Christophe <titouan.christophe@railnova.eu> | 2020-05-05 11:35:03 +0200 |
commit | 1f246bfcc8fc2e55f05dd863f286a2057ad29ef7 (patch) | |
tree | 9e77fe7c76d0eba3b996710f3b6003f35f3cb503 /src/server.h | |
parent | 140c20fb5ecf051896459ce5ee2891f27a49e945 (diff) | |
download | redis-1f246bfcc8fc2e55f05dd863f286a2057ad29ef7.tar.gz |
make struct user anonymous (only typedefed)
This works because this struct is never referenced by its name,
but always by its type.
This prevents a conflict with struct user from <sys/user.h>
when compiling against uclibc.
Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h index 9c2b761c4..59cf1370e 100644 --- a/src/server.h +++ b/src/server.h @@ -732,7 +732,7 @@ typedef struct readyList { no AUTH is needed, and every connection is immediately authenticated. */ -typedef struct user { +typedef struct { sds name; /* The username as an SDS string. */ uint64_t flags; /* See USER_FLAG_* */ |