summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-10 19:07:58 +0000
committerGerrit Code Review <review@openstack.org>2016-11-10 19:07:58 +0000
commitf396208f69a2d7fd7fc2ff5f554666f0c53f74c4 (patch)
treef21757e0061d05d1bbe6922b02c9251993460562
parent0a2c06b8b446cbe4fda89c18c20b069728c70323 (diff)
parent169a457198bc2d98b376fc20b989f422b50a79ee (diff)
Merge "Beautify fill_buffer()"
-rw-r--r--test/libec_slap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libec_slap.c b/test/libec_slap.c
index 63640a7..78d34a2 100644
--- a/test/libec_slap.c
+++ b/test/libec_slap.c
@@ -144,10 +144,9 @@ out:
144static void fill_buffer(char *buf, size_t size, int seed) 144static void fill_buffer(char *buf, size_t size, int seed)
145{ 145{
146 size_t i; 146 size_t i;
147 buf[0] = seed;
148 147
149 for (i=1; i < size; i++) { 148 for (i=0; i < size; i++) {
150 buf[i] = ((buf[i-1] + i) % 256); 149 buf[i] = (seed += i);
151 } 150 }
152} 151}
153 152