aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-03-15 15:16:29 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-03-15 15:16:29 +0200
commita6d33abe1d17ea1d004c645cc27120c92d7aa8e6 (patch)
treea752e9c99368d017c7da7ab8e731cfb706979068 /src
parent58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2 (diff)
downloadeclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.gz
eclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.bz2
Minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/ispeek.c2
-rw-r--r--src/util.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ispeek.c b/src/ispeek.c
index 9e4f8e3..82837c6 100644
--- a/src/ispeek.c
+++ b/src/ispeek.c
@@ -148,3 +148,3 @@ print_file(const char *path, struct closure *cl)
- while (key = *argv++) {
+ while ((key = *argv++)) {
struct json_value *p;
diff --git a/src/util.c b/src/util.c
index 54a2e39..24b46ab 100644
--- a/src/util.c
+++ b/src/util.c
@@ -80,3 +80,3 @@ eclat_stpcpy(char *p, char *q)
{
- while (*p = *q++)
+ while ((*p = *q++))
++p;
@@ -234,3 +234,2 @@ eclat_send_request(struct ec2_request *orig, struct grecs_node **ret_tree)
struct grecs_node *xmltree = NULL;
- void *sim;
@@ -449,3 +448,3 @@ read_file(const char *file)
- while (n = fread(inbuf, 1, sizeof(inbuf), stdin))
+ while ((n = fread(inbuf, 1, sizeof(inbuf), stdin)) > 0)
grecs_txtacc_grow(acc, inbuf, n);

Return to:

Send suggestions and report system problems to the System administrator.