liquid_feedback_core

changeset 363:d11a5c013df9

Removed unused variable in "lf_update_suggestion_order"
author jbe
date Sun Mar 17 12:19:36 2013 +0100 (2013-03-17)
parents 6b59cf46f772
children 28f860d5dfb4
files lf_update_suggestion_order.c
line diff
     1.1 --- a/lf_update_suggestion_order.c	Sun Mar 17 12:17:36 2013 +0100
     1.2 +++ b/lf_update_suggestion_order.c	Sun Mar 17 12:19:36 2013 +0100
     1.3 @@ -279,10 +279,9 @@
     1.4      }
     1.5      ballot = ballots;
     1.6      for (i=0; i<tuple_count; i++) {
     1.7 -      char *member_id, *suggestion_id;
     1.8 +      char *member_id;
     1.9        int weight, preference;
    1.10        member_id = PQgetvalue(res, i, COL_MEMBER_ID);
    1.11 -      suggestion_id = PQgetvalue(res, i, COL_SUGGESTION_ID);
    1.12        weight = (int)strtol(PQgetvalue(res, i, COL_WEIGHT), (char **)NULL, 10);
    1.13        if (weight <= 0) {
    1.14          fprintf(stderr, "Unexpected weight value.\n");

Impressum / About Us