Changeset 1433ecda in mainline for uspace/lib/http/src/headers.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/headers.c

    r47b2d7e3 r1433ecda  
    8787        if (buf == NULL) {
    8888                return printf_size(HTTP_HEADER_LINE, header->name, header->value);
    89         }
    90         else {
     89        } else {
    9190                return snprintf(buf, buf_size,
    9291                    HTTP_HEADER_LINE, header->name, header->value);
     
    229228        size_t write_index = 0;
    230229
    231         while (is_lws(value[read_index])) read_index++;
     230        while (is_lws(value[read_index]))
     231                read_index++;
    232232
    233233        while (value[read_index] != 0) {
    234234                if (is_lws(value[read_index])) {
    235                         while (is_lws(value[read_index])) read_index++;
     235                        while (is_lws(value[read_index]))
     236                                read_index++;
    236237
    237238                        if (value[read_index] != 0)
     
    255256}
    256257
    257 void http_headers_init(http_headers_t *headers) {
     258void http_headers_init(http_headers_t *headers)
     259{
    258260        list_initialize(&headers->list);
    259261}
     
    269271                if (found == NULL) {
    270272                        found = header;
    271                 }
    272                 else {
     273                } else {
    273274                        return HTTP_EMULTIPLE_HEADERS;
    274275                }
Note: See TracChangeset for help on using the changeset viewer.