summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90287c6)
raw | patch | inline | side by side (parent: 90287c6)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 25 Mar 2008 14:56:59 +0000 (15:56 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:29:29 +0000 (09:29 +0100) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_cmd_getval.c | patch | blob | history | |
src/utils_cmd_putnotif.c | patch | blob | history | |
src/utils_cmd_putval.c | patch | blob | history |
diff --git a/src/utils_cmd_getval.c b/src/utils_cmd_getval.c
index fa5cdf2c92616afdf95301245d744342cba7e3b2..85028d0f0bedad22ad35ad9c0e28ae931a8b857e 100644 (file)
--- a/src/utils_cmd_getval.c
+++ b/src/utils_cmd_getval.c
if (strlen (fields[1]) < strlen ("h/p/t"))
{
- fprintf (fh, "-1 Invalied identifier, %s", fields[1]);
+ fprintf (fh, "-1 Invalied identifier, %s\n", fields[1]);
fflush (fh);
return (-1);
}
status = uc_get_rate_by_name (fields[1], &values, &values_num);
if (status != 0)
{
- fprintf (fh, "-1 No such value");
+ fprintf (fh, "-1 No such value\n");
fflush (fh);
return (-1);
}
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;
}