Changeset a35b458 in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskmon/taskmon.c

    r3061bc1 ra35b458  
    135135{
    136136        printf("%s: Task Monitoring Service\n", NAME);
    137        
     137
    138138#ifdef CONFIG_WRITE_CORE_FILES
    139139        write_core_files = true;
     
    145145                return -1;
    146146        }
    147        
     147
    148148        async_set_fallback_port_handler(corecfg_client_conn, NULL);
    149        
     149
    150150        errno_t rc = loc_server_register(NAME);
    151151        if (rc != EOK) {
     
    154154                return -1;
    155155        }
    156        
     156
    157157        service_id_t sid;
    158158        rc = loc_service_register(SERVICE_NAME_CORECFG, &sid);
     
    162162                return -1;
    163163        }
    164        
     164
    165165        task_retval(0);
    166166        async_manager();
    167        
     167
    168168        return 0;
    169169}
Note: See TracChangeset for help on using the changeset viewer.