diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:53:12 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:53:12 +0000 |
commit | 0644b3988487e4eb70352dc65d4f840de57d9330 (patch) | |
tree | bace74acf23f526eceda01a5f9636b2d718dcedc | |
parent | 4a1b300acccc7bf96bb8f2043f238fb4037a5411 (diff) | |
download | monitoring-plugins-0644b3988487e4eb70352dc65d4f840de57d9330.tar.gz |
use single quotes per guideline, also quote when SPC or = are found
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@702 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 5dbdb4de..ec254739 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -521,8 +521,8 @@ char *perfdata (const char *label, | |||
521 | { | 521 | { |
522 | char *data = NULL; | 522 | char *data = NULL; |
523 | 523 | ||
524 | if (index (label, '"')) | 524 | if (strpbrk (label, "'= ")) |
525 | asprintf (&data, "\"%s\"=%ld%s;", label, val, uom); | 525 | asprintf (&data, "'%s'=%ld%s;", label, val, uom); |
526 | else | 526 | else |
527 | asprintf (&data, "%s=%ld%s;", label, val, uom); | 527 | asprintf (&data, "%s=%ld%s;", label, val, uom); |
528 | 528 | ||