Changeset 365f259 in mainline for uspace/drv/audio/sb16/sb16.c


Ignore:
Timestamp:
2013-03-03T17:14:26Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
90c1d80
Parents:
80d5307
Message:

sb16: Use arrays_size macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/sb16.c

    r80d5307 r365f259  
    3131#include <errno.h>
    3232#include <str_error.h>
     33#include <macros.h>
    3334#include <audio_mixer_iface.h>
    3435#include <audio_pcm_iface.h>
     
    7374size_t sb16_irq_code_size(void)
    7475{
    75         return sizeof(irq_cmds) / sizeof(irq_cmds[0]);
     76        return ARRAY_SIZE(irq_cmds);
    7677}
    7778
Note: See TracChangeset for help on using the changeset viewer.