Changeset 76f566d in mainline


Ignore:
Timestamp:
2018-07-05T09:32:27Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
984a9ba
Parents:
5e904dd
Message:

coding style improvements (no change in functionality)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/cap.h

    r5e904dd r76f566d  
    3636#define ABI_CAP_H_
    3737
    38 #define CAP_NIL         0
     38#define CAP_NIL  0
    3939
    40 #define CAP_HANDLE_VALID(handle)        ((handle) != CAP_NIL)
    41 #define CAP_HANDLE_RAW(handle)          ((intptr_t) (handle))
     40#define CAP_HANDLE_VALID(handle)  ((handle) != CAP_NIL)
     41#define CAP_HANDLE_RAW(handle)    ((intptr_t) (handle))
    4242
    4343typedef void *cap_handle_t;
     
    4545typedef struct {
    4646} *cap_call_handle_t;
     47
    4748typedef struct {
    4849} *cap_phone_handle_t;
     50
    4951typedef struct {
    5052} *cap_irq_handle_t;
  • uspace/app/trace/ipcp.h

    r5e904dd r76f566d  
    3838#include "proto.h"
    3939
    40 void ipcp_init(void);
    41 void ipcp_cleanup(void);
     40extern void ipcp_init(void);
     41extern void ipcp_cleanup(void);
    4242
    43 void ipcp_call_out(cap_phone_handle_t, ipc_call_t *, cap_call_handle_t);
    44 void ipcp_call_sync(cap_phone_handle_t, ipc_call_t *call, ipc_call_t *answer);
    45 void ipcp_call_in(ipc_call_t *call, cap_call_handle_t);
    46 void ipcp_hangup(cap_phone_handle_t, errno_t);
     43extern void ipcp_call_out(cap_phone_handle_t, ipc_call_t *, cap_call_handle_t);
     44extern void ipcp_call_sync(cap_phone_handle_t, ipc_call_t *, ipc_call_t *);
     45extern void ipcp_call_in(ipc_call_t *, cap_call_handle_t);
     46extern void ipcp_hangup(cap_phone_handle_t, errno_t);
    4747
    48 void ipcp_connection_set(cap_phone_handle_t, int server, proto_t *proto);
    49 void ipcp_connection_clear(cap_phone_handle_t);
     48extern void ipcp_connection_set(cap_phone_handle_t, int, proto_t *);
     49extern void ipcp_connection_clear(cap_phone_handle_t);
    5050
    5151#endif
  • uspace/lib/usbhost/include/usb/host/ddf_helpers.h

    r5e904dd r76f566d  
    4646
    4747
    48 errno_t hcd_ddf_setup_hc(ddf_dev_t *, size_t);
    49 void hcd_ddf_clean_hc(hc_device_t *);
     48extern errno_t hcd_ddf_setup_hc(ddf_dev_t *, size_t);
     49extern void hcd_ddf_clean_hc(hc_device_t *);
    5050
     51extern device_t *hcd_ddf_fun_create(hc_device_t *, usb_speed_t);
     52extern void hcd_ddf_fun_destroy(device_t *);
    5153
    52 device_t *hcd_ddf_fun_create(hc_device_t *, usb_speed_t);
    53 void hcd_ddf_fun_destroy(device_t *);
     54extern errno_t hcd_ddf_setup_match_ids(device_t *,
     55    usb_standard_device_descriptor_t *);
    5456
    55 errno_t hcd_ddf_setup_match_ids(device_t *, usb_standard_device_descriptor_t *);
    56 
    57 errno_t hcd_ddf_enable_interrupt(hc_device_t *hcd, int);
    58 errno_t hcd_ddf_get_registers(hc_device_t *hcd, hw_res_list_parsed_t *hw_res);
    59 
    60 void hcd_ddf_gen_irq_handler(cap_call_handle_t icall_handle, ipc_call_t *call, ddf_dev_t *dev);
     57extern errno_t hcd_ddf_enable_interrupt(hc_device_t *, int);
     58extern errno_t hcd_ddf_get_registers(hc_device_t *, hw_res_list_parsed_t *);
    6159
    6260#endif
  • uspace/srv/fs/tmpfs/tmpfs.c

    r5e904dd r76f566d  
    5353#include "../../vfs/vfs.h"
    5454
    55 #define NAME "tmpfs"
    56 
     55#define NAME  "tmpfs"
    5756
    5857vfs_info_t tmpfs_vfs_info = {
     
    6564int main(int argc, char **argv)
    6665{
    67         printf(NAME ": HelenOS TMPFS file system server\n");
     66        printf("%s: HelenOS TMPFS file system server\n", NAME);
    6867
    6968        if (argc == 3) {
     
    7170                        tmpfs_vfs_info.instance = strtol(argv[2], NULL, 10);
    7271                else {
    73                         printf(NAME " Unrecognized parameters");
     72                        printf("%s: Unrecognized parameters", NAME);
    7473                        return -1;
    7574                }
     
    7776
    7877        if (!tmpfs_init()) {
    79                 printf(NAME ": failed to initialize TMPFS\n");
     78                printf("%s: Failed to initialize TMPFS\n", NAME);
    8079                return -1;
    8180        }
     
    8483            INTERFACE_VFS_DRIVER, 0);
    8584        if (!vfs_sess) {
    86                 printf(NAME ": Unable to connect to VFS\n");
     85                printf("%s: Unable to connect to VFS\n", NAME);
    8786                return -1;
    8887        }
     
    9190            &tmpfs_libfs_ops);
    9291        if (rc != EOK) {
    93                 printf(NAME ": Failed to register file system: %s\n", str_error(rc));
     92                printf("%s: Failed to register file system: %s\n", NAME,
     93                    str_error(rc));
    9494                return rc;
    9595        }
    9696
    97         printf(NAME ": Accepting connections\n");
     97        printf("%s: Accepting connections\n", NAME);
    9898        task_retval(0);
    9999        async_manager();
Note: See TracChangeset for help on using the changeset viewer.