Changeset 36795edf in mainline for uspace/srv/audio/hound/hound_ctx.c


Ignore:
Timestamp:
2021-03-12T19:16:51Z (3 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a85d5c6
Parents:
17fac946
Message:

Improve lists and other data structures

Provide more standard-compliant member_to_inst implementation that uses
offsetof. Avoid potential undefined behavior in list_foreach and
list_foreach_rev by avoiding assinging an unaligned pointer value. Use
size_t instead of unsigned long for list length.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound_ctx.c

    r17fac946 r36795edf  
    403403                return ENOMEM;
    404404        }
    405         log_verbose("CTX: %p: Mixing %lu streams", ctx,
     405        log_verbose("CTX: %p: Mixing %zu streams", ctx,
    406406            list_count(&ctx->streams));
    407407        pcm_format_silence(buffer, size, &source->format);
     
    413413                        log_warning("Not enough data in stream buffer");
    414414        }
    415         log_verbose("CTX: %p. Pushing audio to %lu connections", ctx,
     415        log_verbose("CTX: %p. Pushing audio to %zu connections", ctx,
    416416            list_count(&source->connections));
    417417        list_foreach(source->connections, source_link, connection_t, conn) {
Note: See TracChangeset for help on using the changeset viewer.