aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
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/util.c
parent58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2 (diff)
downloadeclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.gz
eclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.bz2
Minor fixes
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 2 insertions, 3 deletions
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.