Changeset e8975278 in mainline for uspace/srv


Ignore:
Timestamp:
2018-05-10T15:14:02Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1420cae9
Parents:
ae7d03c
git-author:
Jiri Svoboda <jiri@…> (2018-05-10 07:53:56)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-10 15:14:02)
Message:

A few more cstyle fixes.

Location:
uspace/srv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_directory.c

    rae7d03c re8975278  
    7171
    7272        di->bs = block_bb_get(di->service_id);
    73 /*      di->blocks = nodep->size / BPS(di->bs); */
    7473        di->blocks = ROUND_UP(nodep->size, BPS(di->bs)) / BPS(di->bs);
    7574        return EOK;
  • uspace/srv/fs/exfat/exfat_ops.c

    rae7d03c re8975278  
    11981198        }
    11991199
    1200         /* exfat_fsinfo(bs, service_id); */
     1200        if (0)
     1201                exfat_fsinfo(bs, service_id);
    12011202
    12021203        *rrfn = FS_NODE(rootp);
     
    12371238
    12381239/* Print debug info */
    1239 /*
    12401240static void exfat_fsinfo(exfat_bs_t *bs, service_id_t service_id)
    12411241{
     
    12521252        printf("Bytes per sector: %d\n", BPS(bs));
    12531253        printf("Sectors per cluster: %d\n", SPC(bs));
    1254         printf("KBytes per cluster: %d\n", SPC(bs)*BPS(bs)/1024);
     1254        printf("KBytes per cluster: %d\n", SPC(bs) * BPS(bs) / 1024);
    12551255
    12561256        int i, rc;
    12571257        exfat_cluster_t clst;
    1258         for (i=0; i<=7; i++) {
     1258        for (i = 0; i <= 7; i++) {
    12591259                rc = exfat_get_cluster(bs, service_id, i, &clst);
    12601260                if (rc != EOK)
    12611261                        return;
    12621262                printf("Clst %d: %x", i, clst);
    1263                 if (i>=2)
    1264                         printf(", Bitmap: %d\n", bitmap_is_free(bs, service_id, i)!=EOK);
     1263                if (i >= 2)
     1264                        printf(", Bitmap: %d\n", bitmap_is_free(bs, service_id, i) != EOK);
    12651265                else
    12661266                        printf("\n");
    12671267        }
    12681268}
    1269 */
    12701269
    12711270static errno_t exfat_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info)
  • uspace/srv/hid/isdv4_tablet/isdv4.c

    rae7d03c re8975278  
    5454#define CMD_QUERY_TOUCH '%'
    5555
    56 /* packet_consumer_fn(uint8_t *packet, size_t size, isdv4_state_t *state,
    57    void *data)
    58    return true if reading of packets should continue */
    59 typedef bool (*packet_consumer_fn)(uint8_t *, size_t, isdv4_state_t *);
     56/** Packet consumer function
     57 *
     58 * @return true if reading of packets should continue
     59 */
     60typedef bool (*packet_consumer_fn)(uint8_t *packet, size_t size,
     61    isdv4_state_t *state);
    6062
    6163static void isdv4_event_init(isdv4_event_t *event)
  • uspace/srv/net/tcp/conn.c

    rae7d03c re8975278  
    11861186        tcp_segment_dump(seg);
    11871187
    1188         /* Check whether segment is acceptable */
    1189         /* XXX Permit valid ACKs, URGs and RSTs */
    1190 /*      if (!seq_no_segment_acceptable(conn, seg)) {
    1191                 log_msg(LOG_DEFAULT, LVL_WARN, "Segment not acceptable, dropping.");
    1192                 if ((seg->ctrl & CTL_RST) == 0) {
    1193                         tcp_tqueue_ctrl_seg(conn, CTL_ACK);
    1194                 }
    1195                 return;
    1196         }
    1197 */
    1198 
    11991188        if (tcp_conn_seg_proc_rst(conn, seg) == cp_done)
    12001189                return;
Note: See TracChangeset for help on using the changeset viewer.