Changeset 0b4a67a in mainline for uspace


Ignore:
Timestamp:
2010-11-20T15:33:02Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e1f9b7
Parents:
a9c6b966
Message:

Use a more portable definition of NULL.

Location:
uspace
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/builtins/builtins.h

    ra9c6b966 r0b4a67a  
    1010#include "cd/cd_def.h"
    1111#include "exit/exit_def.h"
    12         {NULL, NULL, NULL, NULL, NULL}
     12        {NULL, NULL, NULL, NULL, 0}
    1313};
    1414
  • uspace/app/nettest1/nettest1.c

    ra9c6b966 r0b4a67a  
    388388                return ENOMEM;
    389389        }
    390         socket_ids[sockets] = NULL;
     390        socket_ids[sockets] = 0;
    391391
    392392        if (verbose)
  • uspace/app/nettest2/nettest2.c

    ra9c6b966 r0b4a67a  
    336336                return ENOMEM;
    337337        }
    338         socket_ids[sockets] = NULL;
     338        socket_ids[sockets] = 0;
    339339
    340340        if (verbose)
  • uspace/lib/c/arch/abs32le/src/stacktrace.c

    ra9c6b966 r0b4a67a  
    5656uintptr_t stacktrace_fp_get(void)
    5757{
    58         return NULL;
     58        return (uintptr_t) NULL;
    5959}
    6060
    6161uintptr_t stacktrace_pc_get(void)
    6262{
    63         return NULL;
     63        return (uintptr_t) NULL;
    6464}
    6565
  • uspace/lib/c/arch/abs32le/src/tls.c

    ra9c6b966 r0b4a67a  
    4646uintptr_t __aeabi_read_tp(void)
    4747{
    48         return NULL;
     48        return (uintptr_t) NULL;
    4949}
    5050
  • uspace/lib/c/generic/async.c

    ra9c6b966 r0b4a67a  
    536536                if (callid)
    537537                        ipc_answer_0(callid, ENOMEM);
    538                 return NULL;
     538                return (uintptr_t) NULL;
    539539        }
    540540       
     
    556556                if (callid)
    557557                        ipc_answer_0(callid, ENOMEM);
    558                 return NULL;
     558                return (uintptr_t) NULL;
    559559        }
    560560       
  • uspace/lib/c/generic/io/klog.c

    ra9c6b966 r0b4a67a  
    5252void klog_update(void)
    5353{
    54         (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);
     54        (void) __SYSCALL3(SYS_KLOG, 1, (uintptr_t) NULL, 0);
    5555}
    5656
  • uspace/lib/c/include/unistd.h

    ra9c6b966 r0b4a67a  
    4141
    4242#ifndef NULL
    43         #define NULL  0UL
     43        #define NULL    ((void *) 0)
    4444#endif
    4545
  • uspace/srv/hid/kbd/genarch/gsp.c

    ra9c6b966 r0b4a67a  
    198198        if (t == NULL) {
    199199                printf("gsp_step: not found\n");
    200                 *mods = NULL;
    201                 *key = NULL;
     200                *mods = 0;
     201                *key = 0;
    202202                return 0;
    203203        }
  • uspace/srv/hw/netif/dp8390/dp8390.c

    ra9c6b966 r0b4a67a  
    432432        dep->de_write_iovec.iod_iovec[0].iov_size = size;
    433433        dep->de_write_iovec.iod_iovec_s = 1;
    434         dep->de_write_iovec.iod_iovec_addr = NULL;
     434        dep->de_write_iovec.iod_iovec_addr = (uintptr_t) NULL;
    435435
    436436        if (size < ETH_MIN_PACK_SIZE || size > ETH_MAX_PACK_SIZE_TAGGED)
     
    10151015        dep->de_read_iovec.iod_iovec[0].iov_size = length;
    10161016        dep->de_read_iovec.iod_iovec_s = 1;
    1017         dep->de_read_iovec.iod_iovec_addr = NULL;
     1017        dep->de_read_iovec.iod_iovec_addr = (uintptr_t) NULL;
    10181018
    10191019        last = page + (length - 1) / DP_PAGESIZE;
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    ra9c6b966 r0b4a67a  
    127127                dep->received_count = 0;
    128128                fibril_rwlock_write_unlock(&netif_globals.lock);
    129                 nil_received_msg(phone, device_id, received, NULL);
     129                nil_received_msg(phone, device_id, received, SERVICE_NONE);
    130130        }else{
    131131                fibril_rwlock_write_unlock(&netif_globals.lock);
Note: See TracChangeset for help on using the changeset viewer.