Changeset 84239b1 in mainline for uspace/srv


Ignore:
Timestamp:
2018-03-11T19:39:11Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

Location:
uspace/srv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_ops.c

    r850fd32 r84239b1  
    825825{
    826826        errno_t rc;
     827        errno_t tmp;
    827828        fs_node_t *fn = NULL;
    828829
     
    926927        return rc;
    927928out_error:
    928         ;
    929         errno_t tmp = mfs_node_put(fn);
     929        tmp = mfs_node_put(fn);
    930930        async_answer_0(callid, tmp != EOK ? tmp : rc);
    931931        return tmp != EOK ? tmp : rc;
  • uspace/srv/hid/rfb/rfb.h

    r850fd32 r84239b1  
    139139        uint16_t first_color;
    140140        uint16_t color_count;
    141 } __attribute((packed)) rfb_set_color_map_entries_t;
     141} __attribute__((packed)) rfb_set_color_map_entries_t;
    142142
    143143typedef struct {
  • uspace/srv/net/slip/slip.c

    r850fd32 r84239b1  
    239239
    240240        while (true) {
    241                 for (sdu.size = 0; sdu.size < sizeof(recv_final); /**/) {
     241                sdu.size = 0;
     242                while (sdu.size < sizeof(recv_final)) {
    242243                        ch = read_buffered(chardev);
    243244                        switch (ch) {
  • uspace/srv/vfs/vfs.h

    r850fd32 r84239b1  
    6060} fs_info_t;
    6161
    62 /**
    63  * VFS_PAIR uniquely represents a file system instance.
    64  */
    65 #define VFS_PAIR \
    66         fs_handle_t fs_handle; \
     62/** Uniquely represents a file system instance. */
     63typedef struct {
     64        fs_handle_t fs_handle;
    6765        service_id_t service_id;
    68 
    69 /**
    70  * VFS_TRIPLET uniquely identifies a file system node (e.g. directory, file) but
    71  * doesn't contain any state. For a stateful structure, see vfs_node_t.
     66} vfs_pair_t;
     67
     68/** Uniquely identifies a file system node (e.g. directory, file)
     69 * but doesn't contain any state. For a stateful structure, see vfs_node_t.
    7270 *
    7371 * @note        fs_handle, service_id and index are meant to be returned in one
    7472 *              IPC reply.
    7573 */
    76 #define VFS_TRIPLET \
    77         VFS_PAIR; \
     74typedef struct {
     75        fs_handle_t fs_handle;
     76        service_id_t service_id;
    7877        fs_index_t index;
    79 
    80 typedef struct {
    81         VFS_PAIR;
    82 } vfs_pair_t;
    83 
    84 typedef struct {
    85         VFS_TRIPLET;
    8678} vfs_triplet_t;
    8779
     
    10395 */
    10496typedef struct _vfs_node {
    105         VFS_TRIPLET;            /**< Identity of the node. */
     97        /*
     98         * Identity of the node
     99         */
     100
     101        fs_handle_t fs_handle;
     102        service_id_t service_id;
     103        fs_index_t index;
    106104
    107105        /**
Note: See TracChangeset for help on using the changeset viewer.