Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    r7b616e2 rcde999a  
    4545#include <errno.h>
    4646#include <ns.h>
    47 #include <malloc.h>
     47#include <stdlib.h>
    4848#include <libc.h>
    4949#include "private/ns.h"
     
    6969 *             program.
    7070 *
    71  * @return Zero on success or negative error code.
     71 * @return Zero on success or an error code.
    7272 */
    7373int task_set_name(const char *name)
     
    7575        assert(name);
    7676       
    77         return __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
     77        return (int) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
    7878}
    7979
     
    8282 * @param task_id ID of task to kill.
    8383 *
    84  * @return Zero on success or negative error code.
     84 * @return Zero on success or an error code.
    8585 */
    8686
     
    101101 * @param argv Command-line arguments.
    102102 *
    103  * @return Zero on success or negative error code.
     103 * @return Zero on success or an error code.
    104104 *
    105105 */
     
    143143 * @param std_err File to use as stderr.
    144144 *
    145  * @return Zero on success or negative error code.
     145 * @return Zero on success or an error code.
    146146 *
    147147 */
     
    249249 * @param ap   Command-line arguments.
    250250 *
    251  * @return Zero on success or negative error code.
     251 * @return Zero on success or an error code.
    252252 *
    253253 */
     
    287287 * @param ...  Command-line arguments.
    288288 *
    289  * @return Zero on success or negative error code.
     289 * @return Zero on success or an error code.
    290290 *
    291291 */
     
    369369        assert(retval);
    370370
    371         sysarg_t rc;
     371        int rc;
    372372        async_wait_for(wait->aid, &rc);
    373373
Note: See TracChangeset for help on using the changeset viewer.