summaryrefslogtreecommitdiffstats
path: root/src/account/indication_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/account/indication_common.c')
-rw-r--r--src/account/indication_common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/account/indication_common.c b/src/account/indication_common.c
index d9629b4..e64e02b 100644
--- a/src/account/indication_common.c
+++ b/src/account/indication_common.c
@@ -32,7 +32,6 @@
#include <errno.h>
#include "indication_common.h"
-#include <globals.h>
#define EVENT_SIZE (sizeof(struct inotify_event))
#define BUF_LEN (10 * EVENT_SIZE + NAME_MAX + 1)
@@ -104,7 +103,7 @@ void watcher_destroy(AccountIndication *ind)
bool watcher(AccountIndication *ind, void **data)
{
struct timespec curr_pwd, curr_grp;
- char errbuf[STRERROR_BUF_LEN];
+ char errbuf[BUFLEN];
if (ind->inotify_fd < 0)
return false;
@@ -113,7 +112,7 @@ bool watcher(AccountIndication *ind, void **data)
do {
const int len = read(ind->inotify_fd, buffer, BUF_LEN);
if (len < 0) {
- warn("account watcher: error reading from inotify fd: %s", strerror_r(errno, errbuf, sizeof(errbuf)));
+ lmi_warn("account watcher: error reading from inotify fd: %s", strerror_r(errno, errbuf, sizeof(errbuf)));
watcher_destroy(ind);
watcher_init(ind);
return false;
@@ -129,7 +128,7 @@ bool watcher(AccountIndication *ind, void **data)
while (i + (ssize_t) EVENT_SIZE < len) {
struct inotify_event *event = (struct inotify_event *) &buffer[i];
if (i + (ssize_t) EVENT_SIZE + event->len > len) {
- error("Unable to create watcher, inotify initialization failed");
+ lmi_error("Unable to create watcher, inotify initialization failed");
watcher_destroy(ind);
watcher_init(ind);
return false;