Skip to content

Mark header variables as extern #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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