chiark / gitweb /
comm-common.h: Remove unused `notify' variable
authorColin Watson <cjwatson@debian.org>
Sun, 15 Aug 2021 05:04:02 +0000 (05:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 23 Dec 2021 11:25:14 +0000 (11:25 +0000)
This only needs to declare the `comm_notify_list' type, and declaring
the variable here without `extern' causes a multiple-definition link
failure on bullseye.

comm-common.h

index 45340e4202e8bfe6a05dd906a4a1090e9ee80eec..7027ee5f5aadafc9a93c01aae45b89e7d2743264 100644 (file)
@@ -30,7 +30,7 @@ struct comm_notify_entry {
     void *state;
     LIST_ENTRY(comm_notify_entry) entry;
 };
-LIST_HEAD(comm_notify_list, comm_notify_entry) notify;
+LIST_HEAD(comm_notify_list, comm_notify_entry);
 
 struct commcommon { /* must be first so that void* is comm_common* */
     closure_t cl;