Changeset 22d990c in mainline for uspace/srv


Ignore:
Timestamp:
2020-01-11T00:36:26Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
06599a1
Parents:
8a74512
Message:

Clean up code

Correcting order of includes. Remove unnecessary new lines. Removing
old function declaration. Typos.

Location:
uspace/srv
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/driver.c

    r8a74512 r22d990c  
    3636#include <io/log.h>
    3737#include <vfs/vfs.h>
    38 #include <dirent.h>
    3938#include <loc.h>
     39#include <str_error.h>
    4040#include <stdio.h>
    41 #include <str_error.h>
    4241#include <sysman/ctl.h>
    4342#include <task.h>
  • uspace/srv/devman/drv_conn.c

    r8a74512 r22d990c  
    3636
    3737#include <assert.h>
     38#include <ipc/services.h>
     39#include <ns.h>
    3840#include <async.h>
     41#include <stdio.h>
    3942#include <errno.h>
     43#include <str_error.h>
     44#include <stdbool.h>
    4045#include <fibril_synch.h>
     46#include <stdlib.h>
     47#include <str.h>
    4148#include <io/log.h>
    4249#include <ipc/devman.h>
    43 #include <ipc/services.h>
    4450#include <loc.h>
    45 #include <ns.h>
    46 #include <stdbool.h>
    47 #include <stdio.h>
    48 #include <stdlib.h>
    49 #include <str.h>
    50 #include <str_error.h>
    5151#include <sysman/broker.h>
    5252
  • uspace/srv/hid/compositor/compositor.c

    r8a74512 r22d990c  
    22672267        if (!list_empty(&viewport_list))
    22682268                input_activate(input);
     2269
    22692270ret:
    22702271        fibril_mutex_unlock(&discovery_mtx);
  • uspace/srv/loader/main.c

    r8a74512 r22d990c  
    3939 * loader.
    4040 *
    41  * The apparent caller uses his phone to send the pathname and various other
     41 * The apparent caller uses its phone to send the pathname and various other
    4242 * information to the loader. This is normally done by the C library
    4343 * and completely hidden from applications.
     
    4949#include <stddef.h>
    5050#include <ipc/services.h>
     51#include <ipc/loader.h>
     52#include <ns.h>
     53#include <loader/pcb.h>
     54#include <entry_point.h>
     55#include <errno.h>
     56#include <async.h>
     57#include <str.h>
    5158#include <as.h>
    52 #include <async.h>
    5359#include <elf/elf.h>
    5460#include <elf/elf_load.h>
    55 #include <entry_point.h>
    56 #include <errno.h>
    5761#include <fibril_synch.h>
    58 #include <ipc/loader.h>
    59 #include <loader/pcb.h>
    60 #include <ns.h>
    61 #include <str.h>
    6262#include <task.h>
    6363#include <taskman.h>
  • uspace/srv/locsrv/locsrv.c

    r8a74512 r22d990c  
    3636 */
    3737
    38 #include <assert.h>
     38#include <ipc/services.h>
     39#include <ns.h>
    3940#include <async.h>
     41#include <stdio.h>
    4042#include <errno.h>
    41 #include <ipc/loc.h>
    42 #include <ipc/services.h>
     43#include <stdbool.h>
    4344#include <fibril_synch.h>
    4445#include <macros.h>
    45 #include <ns.h>
    46 #include <stdbool.h>
    47 #include <stdio.h>
    4846#include <stdlib.h>
    4947#include <str.h>
    5048#include <str_error.h>
     49#include <ipc/loc.h>
     50#include <assert.h>
    5151#include <sysman/broker.h>
    5252#include <sysman/ctl.h>
  • uspace/srv/logger/main.c

    r8a74512 r22d990c  
    8383
    8484        printf("%s: Accepting connections\n", NAME);
    85 
    8685        task_retval(EOK);
    8786        async_manager();
  • uspace/srv/ns/ns.c

    r8a74512 r22d990c  
    132132                return rc;
    133133        }
     134
    134135        task_retval(0);
    135 
    136136        printf("%s: Accepting connections\n", NAME);
    137 
    138137        async_manager();
    139138
  • uspace/srv/taskman/task.h

    r8a74512 r22d990c  
    6969        /* Link to listeners list. */
    7070        link_t listeners;
    71         /* Session for notifications to task. */
     71        /* Session for sending event notifications to registrar. */
    7272        async_sess_t *sess;
    7373} task_t;
  • uspace/srv/vfs/Makefile

    r8a74512 r22d990c  
    3030USPACE_PREFIX = ../..
    3131LIBS = sysman
    32 EXTRA_CFLAGS += -I$(USPACE_PREFIX)/lib/sysman/include
    3332BINARY = vfs
    3433STATIC_NEEDED = y
  • uspace/srv/vfs/vfs.c

    r8a74512 r22d990c  
    4141#include <abi/ipc/methods.h>
    4242#include <ns.h>
    43 #include <as.h>
    4443#include <async.h>
    4544#include <stdatomic.h>
     
    4847#include <stdio.h>
    4948#include <ipc/services.h>
    50 #include <macros.h>
    5149#include <stdbool.h>
    5250#include <stdio.h>
    5351#include <str.h>
     52#include <as.h>
     53#include <macros.h>
    5454#include <sysman/broker.h>
     55
    5556#include "vfs.h"
    5657
  • uspace/srv/vfs/vfs.h

    r8a74512 r22d990c  
    178178extern fs_handle_t fs_name_to_handle(const char *, unsigned int instance, bool);
    179179extern vfs_info_t *fs_handle_to_info(fs_handle_t);
    180 extern int vfs_get_fstypes(vfs_fstypes_t *);
     180extern errno_t vfs_get_fstypes(vfs_fstypes_t *);
    181181extern errno_t fs_unit_name(const char *, unsigned int, char **);
    182182
  • uspace/srv/vfs/vfs_register.c

    r8a74512 r22d990c  
    3636 */
    3737
     38#include <ipc/services.h>
     39#include <async.h>
     40#include <fibril.h>
     41#include <fibril_synch.h>
     42#include <errno.h>
     43#include <stdio.h>
     44#include <stdlib.h>
     45#include <str.h>
     46#include <ctype.h>
     47#include <stdbool.h>
    3848#include <adt/list.h>
    3949#include <as.h>
    4050#include <assert.h>
    41 #include <async.h>
    4251#include <stdatomic.h>
    43 #include <ctype.h>
    44 #include <errno.h>
    45 #include <fibril.h>
    46 #include <fibril_synch.h>
    47 #include <ipc/services.h>
    48 #include <stdbool.h>
    49 #include <stdio.h>
    50 #include <stdlib.h>
    51 #include <str.h>
    5252#include <sysman/broker.h>
    5353#include "vfs.h"
Note: See TracChangeset for help on using the changeset viewer.