From 2f898df5ff183d891d185f75003c41e6c7867686 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 26 Dec 2011 16:24:43 +0000 Subject: Fix an PIC32 error in scheduling of signal handlers git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4229 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_kill.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/sched/pthread_kill.c') diff --git a/nuttx/sched/pthread_kill.c b/nuttx/sched/pthread_kill.c index 171b30942..f876220f7 100644 --- a/nuttx/sched/pthread_kill.c +++ b/nuttx/sched/pthread_kill.c @@ -1,8 +1,8 @@ /************************************************************************ * sched/pthread_kill.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -83,11 +83,11 @@ int pthread_kill(pthread_t thread, int signo) { int ret; - *get_errno_ptr() = EINVAL; + set_errno(EINVAL); ret = kill((pid_t)thread, signo); if (ret != OK) { - ret = *get_errno_ptr(); + ret = get_errno(); } return ret; } -- cgit v1.2.3