Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/modules/systemd/libzbxsystemd.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#define LOG_PREFIX "[systemd] "

// pid that initialised the module, before forking workers.
int mainpid;
extern int mainpid;

// timeout set by host agent
int timeout;
extern int timeout;

// D-Bus api
#define DBUS_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties"
Expand Down Expand Up @@ -79,7 +79,7 @@ int dbus_marshall_property(
#define SYSTEMD_UNIT_INTERFACE SYSTEMD_SERVICE_NAME ".Unit"
#define SYSTEMD_SERVICE_INTERFACE SYSTEMD_SERVICE_NAME ".Service"

DBusConnection *conn;
extern DBusConnection *conn;

int systemd_get_unit(char *s, size_t n, const char* unit);
int systemd_unit_is_service(const char *path);
Expand Down