Skip to content

Commit

Permalink
riemann plugin: Make all private funcitons and module-global variable…
Browse files Browse the repository at this point in the history
…s "static".
  • Loading branch information
octo committed Jan 9, 2013
1 parent 325bcef commit 3a8981f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/riemann.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ struct riemann_event {
const char *tags[RIEMANN_MAX_TAGS];
};

char *riemann_tags[RIEMANN_EXTRA_TAGS];
int riemann_tagcount;

int riemann_send(struct riemann_host *, Msg const *);
int riemann_notification(const notification_t *, user_data_t *);
int riemann_write(const data_set_t *, const value_list_t *, user_data_t *);
int riemann_connect(struct riemann_host *);
int riemann_disconnect (struct riemann_host *host);
void riemann_free(void *);
int riemann_config_host(oconfig_item_t *);
int riemann_config(oconfig_item_t *);
static char *riemann_tags[RIEMANN_EXTRA_TAGS];
static int riemann_tagcount;

static int riemann_send(struct riemann_host *, Msg const *);
static int riemann_notification(const notification_t *, user_data_t *);
static int riemann_write(const data_set_t *, const value_list_t *, user_data_t *);
static int riemann_connect(struct riemann_host *);
static int riemann_disconnect (struct riemann_host *host);
static void riemann_free(void *);
static int riemann_config_host(oconfig_item_t *);
static int riemann_config(oconfig_item_t *);
void module_register(void);

int
static int
riemann_send(struct riemann_host *host, Msg const *msg)
{
u_char *buffer;
Expand Down Expand Up @@ -97,7 +97,7 @@ riemann_send(struct riemann_host *host, Msg const *msg)
return 0;
}

int
static int
riemann_notification(const notification_t *n, user_data_t *ud)
{
int i;
Expand Down Expand Up @@ -162,7 +162,7 @@ riemann_notification(const notification_t *n, user_data_t *ud)
return riemann_send(host, &msg);
}

int
static int
riemann_write(const data_set_t *ds,
const value_list_t *vl,
user_data_t *ud)
Expand Down Expand Up @@ -257,7 +257,7 @@ riemann_write(const data_set_t *ds,
return status;
}

int
static int
riemann_connect(struct riemann_host *host)
{
int e;
Expand Down Expand Up @@ -321,7 +321,7 @@ riemann_connect(struct riemann_host *host)
return 0;
}

int
static int
riemann_disconnect (struct riemann_host *host)
{
if (host == NULL)
Expand All @@ -337,7 +337,7 @@ riemann_disconnect (struct riemann_host *host)
return (0);
}

void
static void
riemann_free(void *p)
{
struct riemann_host *host = p;
Expand All @@ -346,7 +346,7 @@ riemann_free(void *p)
sfree(host);
}

int
static int
riemann_config_host(oconfig_item_t *ci)
{
struct riemann_host *host = NULL;
Expand Down Expand Up @@ -427,7 +427,7 @@ riemann_config_host(oconfig_item_t *ci)
return status;
}

int
static int
riemann_config(oconfig_item_t *ci)
{
int i;
Expand Down

0 comments on commit 3a8981f

Please sign in to comment.