Changeset 1cf26ab in mainline for uspace/lib/posix/source/fnmatch.c


Ignore:
Timestamp:
2016-05-14T06:44:37Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
362654a
Parents:
1023758
Message:

Use static assert instead of regular ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/fnmatch.c

    r1023758 r1cf26ab  
    640640        #define nomatch(s1, s2, flags) assert(posix_fnmatch(s1, s2, flags) == FNM_NOMATCH)
    641641
    642         assert(FNM_PATHNAME == FNM_FILE_NAME);
     642        static_assert(FNM_PATHNAME == FNM_FILE_NAME);
    643643        match("", "", 0);
    644644        match("*", "hello", 0);
Note: See TracChangeset for help on using the changeset viewer.