Changeset 1433ecda in mainline for uspace/lib/posix/src/stdlib.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/stdlib.c

    r47b2d7e3 r1433ecda  
    204204 *     or not (zero).
    205205 */
    206 int system(const char *string) {
     206int system(const char *string)
     207{
    207208        // TODO: does nothing at the moment
    208209        not_implemented();
     
    222223char *realpath(const char *restrict name, char *restrict resolved)
    223224{
    224         #ifndef PATH_MAX
    225                 assert(resolved == NULL);
    226         #endif
     225#ifndef PATH_MAX
     226        assert(resolved == NULL);
     227#endif
    227228
    228229        if (name == NULL) {
     
    238239         * to be updated when that support is implemented.
    239240         */
    240         char* absolute = vfs_absolutize(name, NULL);
     241        char *absolute = vfs_absolutize(name, NULL);
    241242
    242243        if (absolute == NULL) {
     
    252253                return absolute;
    253254        } else {
    254                 #ifdef PATH_MAX
    255                         str_cpy(resolved, PATH_MAX, absolute);
    256                 #endif
     255#ifdef PATH_MAX
     256                str_cpy(resolved, PATH_MAX, absolute);
     257#endif
    257258                free(absolute);
    258259                return resolved;
Note: See TracChangeset for help on using the changeset viewer.