Skip to content

Commit

Permalink
lib: rename MessageQueueItem member link_ to link
Browse files Browse the repository at this point in the history
This makes MessageQueueItem comply with the upcoming requirements of
dlist<T>.
  • Loading branch information
arogge committed Feb 24, 2022
1 parent 704032d commit d110a5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/lib/jcr.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2021 Bareos GmbH & Co. KG
Copyright (C) 2013-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -192,7 +192,7 @@ JobControlRecord::JobControlRecord()

MessageQueueItem* item = nullptr;
msg_queue
= new dlist<MessageQueueItem>(item, &item->link_); // calculate offset
= new dlist<MessageQueueItem>(item, &item->link); // calculate offset

int status;
if ((status = pthread_mutex_init(&msg_queue_mutex, nullptr)) != 0) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/lib/message_queue_item.h
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2019-2021 Bareos GmbH & Co. KG
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -32,7 +32,7 @@ class MessageQueueItem {
public:
MessageQueueItem() = default;
virtual ~MessageQueueItem() = default;
dlink<MessageQueueItem> link_;
dlink<MessageQueueItem> link;
int type_ = 0;
utime_t mtime_ = {0};
char* msg_{nullptr};
Expand Down

0 comments on commit d110a5a

Please sign in to comment.