Ignore:
Timestamp:
2010-10-10T15:51:03Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f99c191
Parents:
e9460aa
Message:

Use the standard supported initializers for fibril mutexes and rwlocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/socket/packet/packet_server.c

    re9460aa re721462  
    8585        unsigned int count;
    8686} ps_globals = {
    87         .lock = {
    88                 .counter = 1,
    89                 .waiters = {
    90                         .prev = &ps_globals.lock.waiters,
    91                         .next = &ps_globals.lock.waiters,
    92                 }
    93         },
     87        .lock = FIBRIL_MUTEX_INITIALIZER(ps_globals.lock),
    9488        .free = {NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    9589        .sizes = {PAGE_SIZE, PAGE_SIZE * 2, PAGE_SIZE * 4, PAGE_SIZE * 8, PAGE_SIZE * 16, PAGE_SIZE * 32, PAGE_SIZE * 64},
Note: See TracChangeset for help on using the changeset viewer.