Deleted Added
sdiff udiff text old ( 22315 ) new ( 31402 )
full compact
1/*
2 * Copyright (c) 1997 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 26 unchanged lines hidden (view full) ---

35#ifdef _THREAD_SAFE
36#include <pthread.h>
37#include "pthread_private.h"
38
39int pthread_condattr_destroy(pthread_condattr_t *attr)
40{
41 int ret;
42 if (attr == NULL || *attr == NULL) {
43 ret = EINVAL;
44 } else {
45 free(*attr);
46 *attr = NULL;
47 ret = 0;
48 }
49 return(ret);
50}
51#endif