Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 20ec37c in mainline


Ignore:
Timestamp:
2013-12-31T03:10:39Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.