Ignore:
Timestamp:
2010-04-08T10:20:29Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2480e19
Parents:
5e598e0
Message:

fixed some bugs, parts of pci bus enumeration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ipc/dev_iface.h

    r5e598e0 r89ce401a  
    3232#include <ipc/ipc.h>
    3333#include <malloc.h>
     34#include <unistd.h>
    3435
    3536#define DEV_IFACE_FIRST IPC_FIRST_USER_METHOD
     
    8889static inline void clean_hw_resource_list(hw_resource_list_t *hw_res)
    8990{
    90         free(hw_res->resources);
    91         hw_res->resources = 0;
     91        if(NULL != hw_res->resources) {
     92                free(hw_res->resources);
     93                hw_res->resources = NULL;
     94        }
    9295        hw_res->count = 0;     
    9396}
Note: See TracChangeset for help on using the changeset viewer.