diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-25 15:15:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-25 15:15:59 +0000 |
commit | 8a0243aef57e010e09fcbc179fa06097ae55b15d (patch) | |
tree | 4cebfd6f8dba30b753c103729c8552cb419ba64a /nuttx/net/netdev_register.c | |
parent | f185bb36f26fe0e808048e5f2f3a8a3eda46d0c7 (diff) | |
download | px4-nuttx-8a0243aef57e010e09fcbc179fa06097ae55b15d.tar.gz px4-nuttx-8a0243aef57e010e09fcbc179fa06097ae55b15d.tar.bz2 px4-nuttx-8a0243aef57e010e09fcbc179fa06097ae55b15d.zip |
Add netdev_unregister()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3415 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/netdev_register.c')
-rw-r--r-- | nuttx/net/netdev_register.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/net/netdev_register.c b/nuttx/net/netdev_register.c index fd5656cfc..d9a5edc53 100644 --- a/nuttx/net/netdev_register.c +++ b/nuttx/net/netdev_register.c @@ -104,7 +104,7 @@ void netdev_semtake(void) while (uip_lockedwait(&g_netdev_sem) != 0) { - /* The only case that an error should occr here is if + /* The only case that an error should occur here is if * the wait was awakened by a signal. */ @@ -116,17 +116,17 @@ void netdev_semtake(void) * Function: netdev_register * * Description: - * Register a netword device driver and assign a name to it so tht it can + * Register a network device driver and assign a name to it so tht it can * be found in subsequent network ioctl operations on the device. * * Parameters: * dev - The device driver structure to register * * Returned Value: - * 0:Success; -1 on failure + * 0:Success; negated errno on failure * * Assumptions: - * Called during system initialization from normal user mode + * Called during system initialization from normal user mode * ****************************************************************************/ @@ -140,7 +140,7 @@ int netdev_register(FAR struct uip_driver_s *dev) /* Assign a device name to the interface */ devnum = g_next_devnum++; - snprintf( dev->d_ifname, IFNAMSIZ, NETDEV_FORMAT, devnum ); + snprintf(dev->d_ifname, IFNAMSIZ, NETDEV_FORMAT, devnum ); /* Add the device to the list of known network devices */ |