Changeset 36e9cd1 in mainline for uspace/srv


Ignore:
Timestamp:
2010-02-10T23:15:27Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0701066
Parents:
3149fc0
Message:

silence compiler warnings (no change in actual functionality)

Location:
uspace/srv
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/ata_bd/ata_bd.c

    r3149fc0 r36e9cd1  
    500500
    501501        d = &disk[disk_id];
    502         bc.h = 0;       /* Silence warning. */
     502       
     503        /* Silence warning. */
     504        memset(&bc, 0, sizeof(bc));
    503505
    504506        /* Compute block coordinates. */
     
    574576
    575577        d = &disk[disk_id];
    576         bc.h = 0;       /* Silence warning. */
     578       
     579        /* Silence warning. */
     580        memset(&bc, 0, sizeof(bc));
    577581
    578582        /* Compute block coordinates. */
  • uspace/srv/hid/console/gcons.c

    r3149fc0 r36e9cd1  
    448448       
    449449        int pm = make_pixmap(_binary_gfx_anim_1_ppm_start,
    450             (int) &_binary_gfx_anim_1_ppm_size);
     450            (size_t) &_binary_gfx_anim_1_ppm_size);
    451451        async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    452452       
    453453        pm = make_pixmap(_binary_gfx_anim_2_ppm_start,
    454             (int) &_binary_gfx_anim_2_ppm_size);
     454            (size_t) &_binary_gfx_anim_2_ppm_size);
    455455        async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    456456       
    457457        pm = make_pixmap(_binary_gfx_anim_3_ppm_start,
    458             (int) &_binary_gfx_anim_3_ppm_size);
     458            (size_t) &_binary_gfx_anim_3_ppm_size);
    459459        async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    460460       
    461461        pm = make_pixmap(_binary_gfx_anim_4_ppm_start,
    462             (int) &_binary_gfx_anim_4_ppm_size);
     462            (size_t) &_binary_gfx_anim_4_ppm_size);
    463463        async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
    464464       
  • uspace/srv/hid/fb/serial_console.c

    r3149fc0 r36e9cd1  
    5757void serial_putchar(wchar_t ch);
    5858
    59 static int scr_width;
    60 static int scr_height;
     59static unsigned int scr_width;
     60static unsigned int scr_height;
    6161static bool color = true;       /** True if producing color output. */
    6262static bool utf8 = false;       /** True if producing UTF8 output. */
     
    108108void serial_putchar(wchar_t ch)
    109109{
    110         uint8_t buf[STR_BOUNDS(1)];
     110        char buf[STR_BOUNDS(1)];
    111111        size_t offs;
    112112        size_t i;
     
    294294}
    295295
    296 int lastcol = 0;
    297 int lastrow = 0;
     296unsigned int lastcol = 0;
     297unsigned int lastrow = 0;
    298298
    299299/**
     
    309309
    310310        wchar_t c;
    311         int col, row, w, h;
     311        unsigned int col;
     312        unsigned int row;
     313        unsigned int w;
     314        unsigned int h;
    312315        int i;
    313316
     
    358361                                break;
    359362                        }
    360                         if (col + w > scr_width || row + h > scr_height) {
     363                        if ((col + w > scr_width) || (row + h > scr_height)) {
    361364                                retval = EINVAL;
    362365                                break;
     
    424427                case FB_SCROLL:
    425428                        i = IPC_GET_ARG1(call);
    426                         if ((i > scr_height) || (i < -scr_height)) {
     429                        if ((i > (int) scr_height) || (i < -((int) scr_height))) {
    427430                                retval = EINVAL;
    428431                                break;
  • uspace/srv/hid/kbd/port/msim.c

    r3149fc0 r36e9cd1  
    6464{
    6565        async_set_interrupt_received(msim_irq_handler);
    66         msim_cmds[0].addr = sysinfo_value("kbd.address.virtual");
     66        msim_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual");
    6767        ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
    6868            0, &msim_kbd);
  • uspace/srv/hid/kbd/port/ns16550.c

    r3149fc0 r36e9cd1  
    107107}
    108108
    109 void ns16550_port_yield(void)
    110 {
    111 }
    112 
    113 void ns16550_port_reclaim(void)
    114 {
    115 }
    116 
    117109static void ns16550_irq_handler(ipc_callid_t iid, ipc_call_t *call)
    118110{
  • uspace/srv/hid/kbd/port/sgcn.c

    r3149fc0 r36e9cd1  
    9292
    9393/* polling thread */
    94 static void *sgcn_thread_impl(void *arg);
     94static void sgcn_thread_impl(void *arg);
    9595
    9696static volatile bool polling_disabled = false;
     
    167167 * Thread to poll SGCN for keypresses.
    168168 */
    169 static void *sgcn_thread_impl(void *arg)
     169static void sgcn_thread_impl(void *arg)
    170170{
    171171        (void) arg;
  • uspace/srv/hid/kbd/port/ski.c

    r3149fc0 r36e9cd1  
    4949#define POLL_INTERVAL           10000
    5050
    51 static void *ski_thread_impl(void *arg);
     51static void ski_thread_impl(void *arg);
    5252static int32_t ski_getchar(void);
    5353
     
    8484
    8585/** Thread to poll Ski for keypresses. */
    86 static void *ski_thread_impl(void *arg)
     86static void ski_thread_impl(void *arg)
    8787{
    8888        int32_t c;
  • uspace/srv/hid/kbd/port/z8530.c

    r3149fc0 r36e9cd1  
    9696}
    9797
    98 void z8530_port_yield(void)
    99 {
    100 }
    101 
    102 void z8530_port_reclaim(void)
    103 {
    104 }
    105 
    10698static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call)
    10799{
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r3149fc0 r36e9cd1  
    5555static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall);
    5656static int cuda_init(void);
    57 static int cuda_claim(void);
    5857static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    5958
  • uspace/srv/loader/main.c

    r3149fc0 r36e9cd1  
    241241                 * Allocate new filv
    242242                 */
    243                 fdi_node_t **_filv = (fdi_node_t *) malloc((count + 1) * sizeof(fdi_node_t *));
     243                fdi_node_t **_filv = (fdi_node_t **) calloc(count + 1, sizeof(fdi_node_t *));
    244244                if (_filv == NULL) {
    245245                        free(buf);
  • uspace/srv/vfs/vfs.c

    r3149fc0 r36e9cd1  
    7272                ipc_call_t call;
    7373                ipc_callid_t callid = async_get_call(&call);
    74                
    75                 fs_handle_t fs_handle;
    76                 int phone;
    7774               
    7875                switch (IPC_GET_METHOD(call)) {
Note: See TracChangeset for help on using the changeset viewer.