summaryrefslogtreecommitdiffabout
path: root/src
Side-by-side diff
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-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
@@ -146,7 +146,7 @@ print_file(const char *path, struct closure *cl)
die(EX_DATAERR, "%s: %s", str, json_err_diag);
}
- while (key = *argv++) {
+ while ((key = *argv++)) {
struct json_value *p;
char *s;
diff --git a/src/util.c b/src/util.c
index 54a2e39..24b46ab 100644
--- a/src/util.c
+++ b/src/util.c
@@ -78,7 +78,7 @@ translate_ids(int argc, char **argv, const char *mapname)
char *
eclat_stpcpy(char *p, char *q)
{
- while (*p = *q++)
+ while ((*p = *q++))
++p;
return p;
}
@@ -232,7 +232,6 @@ eclat_send_request(struct ec2_request *orig, struct grecs_node **ret_tree)
time_t endtime;
unsigned long tts, t;
struct grecs_node *xmltree = NULL;
- void *sim;
endtime = time(NULL) + max_retry_time;
tts = 2;
@@ -447,7 +446,7 @@ read_file(const char *file)
char inbuf[4096];
size_t n;
- while (n = fread(inbuf, 1, sizeof(inbuf), stdin))
+ while ((n = fread(inbuf, 1, sizeof(inbuf), stdin)) > 0)
grecs_txtacc_grow(acc, inbuf, n);
grecs_txtacc_grow_char(acc, 0);
if (ferror(stdin))

Return to:

Send suggestions and report system problems to the System administrator.