Skip to content

Commit 7c4b17d

Browse files
committed
smb
1 parent 39004fc commit 7c4b17d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/libsmb2/lib/alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
#endif
7272

7373
#define container_of(ptr, type, member) ({ \
74-
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
75-
(type *)(void *)( (char *)__mptr - offsetof(type,member) );})
74+
const __typeof__(((type *)0)->member) *__mptr = (ptr); \
75+
(type *)(void *)((char *)__mptr - offsetof(type, member)); })
7676

7777
struct smb2_alloc_entry {
7878
struct smb2_alloc_entry *next;

0 commit comments

Comments
 (0)