Ignore:
Timestamp:
2013-12-31T03:10:39Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e04581
Parents:
c1ee46f
Message:

libdrv, char_dev: Use index initialized arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_char_dev.c

    rc1ee46f r20ec37c  
    3636#include <errno.h>
    3737#include <macros.h>
     38#include <device/char_dev.h>
    3839
    3940#include "ops/char_dev.h"
     
    4748/** Remote character interface operations. */
    4849static const remote_iface_func_ptr_t remote_char_dev_iface_ops[] = {
    49         &remote_char_read,
    50         &remote_char_write
     50        [CHAR_DEV_READ] = remote_char_read,
     51        [CHAR_DEV_WRITE] = remote_char_write
    5152};
    5253
Note: See TracChangeset for help on using the changeset viewer.