Deleted Added
full compact
thr_condattr_destroy.c (22315) thr_condattr_destroy.c (31402)
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) {
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 errno = EINVAL;
44 ret = -1;
43 ret = EINVAL;
45 } else {
46 free(*attr);
47 *attr = NULL;
48 ret = 0;
49 }
50 return(ret);
51}
52#endif
44 } else {
45 free(*attr);
46 *attr = NULL;
47 ret = 0;
48 }
49 return(ret);
50}
51#endif