From: Jean-Philippe Orsini Date: Mon, 16 Jul 2012 08:19:29 +0000 (+0000) Subject: code style X-Git-Tag: v0.8.0.5~306 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=30c42b84c3367924fec067a2f4863815a85472d7 code style --- diff --git a/src/main.c b/src/main.c index 150b9c9..5824b72 100644 --- a/src/main.c +++ b/src/main.c @@ -118,23 +118,20 @@ static void print_help() } /* - Updates the size of the sensor values if different than the - configuration. + * Updates the size of the sensor values if different than the + * configuration. */ -void +static void update_psensor_values_size(struct psensor **sensors, struct config *cfg) { - struct psensor **cur; + struct psensor **cur, *s; - cur = sensors; - while (*cur) { - struct psensor *s = *cur; + for (cur = sensors; *cur; cur++) { + s = *cur; if (s->values_max_length != cfg->sensor_values_max_length) psensor_values_resize(s, cfg->sensor_values_max_length); - - cur++; } }