summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ba3ecd)
raw | patch | inline | side by side (parent: 6ba3ecd)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:31:33 +0000 (09:31 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:31:33 +0000 (09:31 +0100) |
This is a backport of 1ca0b79a4274784e4cc15d45e46e2cfa0c2039cf.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_cmd_putnotif.c | patch | blob | history | |
src/utils_cmd_putval.c | patch | blob | history |
index 0282e4e2027318c2f9906c6387d20c3ef496438d..18c1eceedff4f834d5dc196f906bc2426ce18b34 100644 (file)
--- a/src/utils_cmd_putnotif.c
+++ b/src/utils_cmd_putnotif.c
status = parse_option (&n, fields[i]);
if (status != 0)
{
- fprintf (fh, "-1 Error parsing option `%s'", fields[i]);
+ fprintf (fh, "-1 Error parsing option `%s'\n", fields[i]);
break;
}
}
diff --git a/src/utils_cmd_putval.c b/src/utils_cmd_putval.c
index 7cf0b6da7a998f95da63bc1fcc6999610e67a9fb..ec0c09ae0cfc662a8be35e537e8298fcfbfbf2d0 100644 (file)
--- a/src/utils_cmd_putval.c
+++ b/src/utils_cmd_putval.c
char *value_str = strchr (time_str, ':');
if (value_str == NULL)
{
- fprintf (fh, "-1 No time found.");
+ fprintf (fh, "-1 No time found.\n");
return (-1);
}
*value_str = '\0'; value_str++;
|| ((type_instance != NULL)
&& (strlen (type_instance) >= sizeof (vl.type_instance))))
{
- fprintf (fh, "-1 Identifier too long.");
+ fprintf (fh, "-1 Identifier too long.\n");
return (-1);
}
vl.values = (value_t *) malloc (vl.values_len * sizeof (value_t));
if (vl.values == NULL)
{
- fprintf (fh, "-1 malloc failed.");
+ fprintf (fh, "-1 malloc failed.\n");
return (-1);
}
{
if (parse_option (&vl, fields[i]) != 0)
{
- fprintf (fh, "-1 Error parsing option `%s'",
+ fprintf (fh, "-1 Error parsing option `%s'\n",
fields[i]);
break;
}