Changeset 582a0b8 in mainline for uspace/drv/nic/ar9271


Ignore:
Timestamp:
2017-05-08T19:20:39Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
Location:
uspace/drv/nic/ar9271
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ar9271.c

    r73db198 r582a0b8  
    4343#include <nic.h>
    4444#include <macros.h>
     45#include <thread.h>
    4546#include "ath_usb.h"
    4647#include "wmi.h"
     
    817818       
    818819        /* Wait until firmware is ready - wait for 1 second to be sure. */
    819         sleep(1);
     820        thread_sleep(1);
    820821       
    821822        return rc;
  • uspace/drv/nic/ar9271/hw.c

    r73db198 r582a0b8  
    3535#include <macros.h>
    3636#include <usb/debug.h>
    37 #include <unistd.h>
    3837#include <errno.h>
    3938#include <nic.h>
Note: See TracChangeset for help on using the changeset viewer.