X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fexamples%2Fmyplugin.c;h=d836a7932a4ae12961117948ab24b69a3d8f10e7;hb=7df2428077e2001fdfab3ebbb3bb74b0491b74bd;hp=9539062c9383b88ace7e06954ec60e6bb9fa6684;hpb=ba52f94929822b1968f05cfbb37985af2e0b83a4;p=collectd.git diff --git a/contrib/examples/myplugin.c b/contrib/examples/myplugin.c index 9539062c..d836a793 100644 --- a/contrib/examples/myplugin.c +++ b/contrib/examples/myplugin.c @@ -103,7 +103,7 @@ static int my_read (void) /* 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: "") */ @@ -113,7 +113,7 @@ static int my_read (void) /* 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) */ /*