Ignore:
Timestamp:
Nov 22, 2009, 4:01:24 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed most of Clang Static Checker warnings. And rand() is ok to me, thank you.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/configuration.c

    r4000 r4001  
    112112    fclose(fp);
    113113
    114     i = 0;
    115 
    116114    /* Parse it */
    117115    while ((i =
     
    133131int parse_conf_line(char *buf, int size, struct screen_list *screen_list)
    134132{
    135     int i, s = 0, eol = 0, c = 0;
     133    int i, s = 0, c = 0;
    136134    char *line = NULL;
    137135    int l = 0;
     
    157155        if (buf[i] == ';' && !in_quote)
    158156        {
    159             eol = i;
    160157            break;
    161158        }
    162159        else if (buf[i] == '\n')
    163160        {
    164             eol = i;
    165161            break;
    166162        }
     
    336332    int i = 0;
    337333    struct option *option = screen_list->config;
    338     char *section = NULL;
    339334
    340335    while (option)
     
    342337        if (option->key == NULL)
    343338        {
    344             section = option->key;
    345339            option = option->next;
    346340            continue;
Note: See TracChangeset for help on using the changeset viewer.