freebsd-ports/sysutils/fusefs-smbnetfs/files/patch-src_list.h
Mikhail Teterin 6be6883de3 Upgrade from 0.6.0 to 0.6.1. Samba >= 3.5 is now required and
the use of gnome-ring was replaced with use of libsecret (now
off by default).

Make sure to use our native iconv-implementation and only use
glib20 at build-time for its built-in atomic macros.

Claim maintainership for now to deal with any fallout...
2018-01-29 18:32:31 +00:00

38 lines
1.5 KiB
C

--- src/list.h 2018-01-04 20:59:38 UTC
+++ src/list.h
@@ -23,7 +23,7 @@ static inline LIST* last_list_elem(LIST
static inline void add_to_list(LIST *list, LIST *elem){
/* Yes, i want SIGSEGV for debug */
- if ((elem->next != NULL) || (elem->prev != NULL)) *((char*)NULL) = '\0';
+ if ((elem->next != NULL) || (elem->prev != NULL)) __builtin_trap();
elem->next = list->next;
elem->prev = list;
@@ -33,7 +33,7 @@ static inline void add_to_list(LIST *lis
static inline void add_to_list_back(LIST *list, LIST *elem){
/* Yes, i want SIGSEGV for debug */
- if ((elem->next != NULL) || (elem->prev != NULL)) *((char*)NULL) = '\0';
+ if ((elem->next != NULL) || (elem->prev != NULL)) __builtin_trap();
elem->next = list;
elem->prev = list->prev;
@@ -45,7 +45,7 @@ static inline void insert_to_list_after(
(void)list;
/* Yes, i want SIGSEGV for debug */
- if ((new_elem->next != NULL) || (new_elem->prev != NULL)) *((char*)NULL) = '\0';
+ if ((new_elem->next != NULL) || (new_elem->prev != NULL)) __builtin_trap();
new_elem->next = elem->next;
new_elem->prev = elem;
@@ -57,7 +57,7 @@ static inline void insert_to_list_before
(void)list;
/* Yes, i want SIGSEGV for debug */
- if ((new_elem->next != NULL) || (new_elem->prev != NULL)) *((char*)NULL) = '\0';
+ if ((new_elem->next != NULL) || (new_elem->prev != NULL)) __builtin_trap();
new_elem->next = elem;
new_elem->prev = elem->prev;