From: Florian Forster Date: Wed, 14 Sep 2016 07:00:00 +0000 (+0200) Subject: contrib/examples/myplugin.c: Fix copy and paste error. X-Git-Tag: collectd-5.6.1~1^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7df2428077e2001fdfab3ebbb3bb74b0491b74bd;p=collectd.git contrib/examples/myplugin.c: Fix copy and paste error. --- 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) */ /*