summaryrefslogtreecommitdiff
path: root/scripts/ipkg
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-06 20:52:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-06 20:52:49 +0200
commitaa9a46d40ae76b926880ff36b1bb7d27f52b55ac (patch)
tree9e1d8440896375c8a87b16134973864c133ef780 /scripts/ipkg
parentfcb8e56cdc4864aa55ae3f377f94f9be3a9fe7c9 (diff)
use one kernel config
Diffstat (limited to 'scripts/ipkg')
0 files changed, 0 insertions, 0 deletions
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include <stdlib.h> #include "thread_dbP.h" td_err_e td_ta_delete (td_thragent_t *ta) { LOG ("td_ta_delete"); /* Safety check. */ if (ta == NULL || __td_agent_list == NULL) return TD_BADTA; /* Remove the handle from the list. */ if (ta == __td_agent_list->ta) /* It's the first element of the list. */ __td_agent_list = __td_agent_list->next; else { /* We have to search for it. */ struct agent_list *runp = __td_agent_list; while (runp->next != NULL && runp->next->ta != ta) runp = runp->next; if (runp->next == NULL) /* It's not a valid decriptor since it is not in the list. */ return TD_BADTA; runp->next = runp->next->next; } /* The handle was allocated in `td_ta_new'. */ free (ta); return TD_OK; }