Changeset d1582b50 in mainline for uspace/lib/c


Ignore:
Timestamp:
2020-12-14T20:41:53Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02fe42e
Parents:
1382446
git-author:
Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
git-committer:
Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
Message:

Fix spacing in single-line comments using latest ccheck

This found incorrectly formatted section comments (with blocks of
asterisks or dashes). I strongly believe against using section comments
but I am not simply removing them since that would probably be
controversial.

Location:
uspace/lib/c
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/hash_table.c

    r1382446 rd1582b50  
    331331}
    332332
    333 /** Removes an item already present in the table. The item must be in the table.*/
     333/** Removes an item already present in the table. The item must be in the table. */
    334334void hash_table_remove_item(hash_table_t *h, ht_link_t *item)
    335335{
     
    393393}
    394394
    395 /** Allocates and initializes the desired number of buckets. True if successful.*/
     395/** Allocates and initializes the desired number of buckets. True if successful. */
    396396static bool alloc_table(size_t bucket_cnt, list_t **pbuckets)
    397397{
  • uspace/lib/c/generic/double_to_str.c

    r1382446 rd1582b50  
    245245}
    246246
    247 /** Rounds the last digit of buf so that it is closest to the converted number.*/
     247/** Rounds the last digit of buf so that it is closest to the converted number. */
    248248static void round_last_digit(uint64_t rest, uint64_t w_dist, uint64_t delta,
    249249    uint64_t digit_val_diff, char *buf, int len)
  • uspace/lib/c/generic/getopt.c

    r1382446 rd1582b50  
    5656#define PRINT_ERROR     ((opterr) && ((*options != ':') \
    5757                                      || (IGNORE_FIRST && options[1] != ':')))
    58 /*HelenOS Port - POSIXLY_CORRECT is always false */
     58/* HelenOS Port - POSIXLY_CORRECT is always false */
    5959#define IS_POSIXLY_CORRECT 0
    6060#define PERMUTE         (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
  • uspace/lib/c/generic/inet/tcp.c

    r1382446 rd1582b50  
    821821
    822822                if (!ipc_get_imethod(&call)) {
    823                         /* Hangup*/
     823                        /* Hangup */
    824824                        async_answer_0(&call, EOK);
    825825                        goto out;
  • uspace/lib/c/generic/io/printf_core.c

    r1382446 rd1582b50  
    11511151                }
    11521152        } else {
    1153                 /* Convert to get the decimal exponent and digit count.*/
     1153                /* Convert to get the decimal exponent and digit count. */
    11541154                len = double_to_short_str(val, buf, buf_size, &dec_exp);
    11551155                assert(0 < len);
  • uspace/lib/c/generic/rtld/symbol.c

    r1382446 rd1582b50  
    6868        elf_symbol_t *s, *sym;
    6969        elf_word nbucket;
    70         /*elf_word nchain;*/
     70        /* elf_word nchain; */
    7171        elf_word i;
    7272        char *s_name;
     
    7777        sym_table = m->dyn.sym_tab;
    7878        nbucket = m->dyn.hash[0];
    79         /*nchain = m->dyn.hash[1]; XXX Use to check HT range*/
     79        /* nchain = m->dyn.hash[1]; XXX Use to check HT range */
    8080
    8181        bucket = elf_hash((unsigned char *)name) % nbucket;
  • uspace/lib/c/include/double_to_str.h

    r1382446 rd1582b50  
    4646#define MAX_DOUBLE_STR_BUF_SIZE  21
    4747
    48 /* Fwd decl.*/
     48/* Fwd decl. */
    4949struct ieee_double_t_tag;
    5050
  • uspace/lib/c/include/nic/eth_phys.h

    r1382446 rd1582b50  
    3333#include <stdint.h>
    3434
    35 /*****************************************************/
    36 /* Definitions of possible supported physical layers */
    37 /*****************************************************/
     35/*
     36 * Definitions of possible supported physical layers
     37 */
    3838
    3939/* Ethernet physical layers */
     
    108108#define ETH_100GBASE_CR10    0x0080
    109109
    110 /******************************************/
    111 /* Auto-negotiation advertisement options */
    112 /******************************************/
     110/*
     111 * Auto-negotiation advertisement options
     112 */
    113113
    114114#define ETH_AUTONEG_10BASE_T_HALF    UINT32_C(0x00000001)
  • uspace/lib/c/test/stdio/scanf.c

    r1382446 rd1582b50  
    317317}
    318318
    319 /** Decimal ptrdiff_t-sized unsigned int*/
     319/** Decimal ptrdiff_t-sized unsigned int */
    320320PCUT_TEST(dec_unsigned_ptrdiff)
    321321{
  • uspace/lib/c/test/uuid.c

    r1382446 rd1582b50  
    4242        "69C7DB62-8309-4C58-831B-8C4E4161E8AC",
    4343
    44         /* lower case*/
     44        /* lower case */
    4545        "c511bf24-70cb-422e-933b-2a74ab699a56",
    4646        "7b1abd05-456f-4661-ab62-917685069343",
Note: See TracChangeset for help on using the changeset viewer.