summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba52f94)
raw | patch | inline | side by side (parent: ba52f94)
author | Florian Forster <octo@collectd.org> | |
Wed, 14 Sep 2016 07:00:00 +0000 (09:00 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 14 Sep 2016 07:00:00 +0000 (09:00 +0200) |
contrib/examples/myplugin.c | patch | blob | history |
index 9539062c9383b88ace7e06954ec60e6bb9fa6684..d836a7932a4ae12961117948ab24b69a3d8f10e7 100644 (file)
/* it is strongly recommended to use a type defined in the types.db file
* instead of a custom type */
- sstrncpy (vl.type, "myplugin", sizeof (vl.plugin));
+ sstrncpy (vl.type, "myplugin", sizeof (vl.type));
/* optionally set vl.plugin_instance and vl.type_instance to reasonable
* values (default: "") */
/* A return value != 0 indicates an error and the plugin will be skipped
* for an increasing amount of time. */
- return 0;
+ return 0;
} /* static int my_read (void) */
/*