projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
obrisane nepotrebne datoteke od zadnjeg builda
[ossec-hids.git]
/
src
/
shared
/
pthreads_op.c
diff --git
a/src/shared/pthreads_op.c
b/src/shared/pthreads_op.c
old mode 100755
(executable)
new mode 100644
(file)
index
f88dcc1
..
482fbe6
--- a/
src/shared/pthreads_op.c
+++ b/
src/shared/pthreads_op.c
@@
-1,5
+1,3
@@
-/* @(#) $Id$ */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
@@
-9,37
+7,32
@@
* Foundation
*/
* Foundation
*/
-
#ifndef WIN32
#include "shared.h"
#include <pthread.h>
#ifndef WIN32
#include "shared.h"
#include <pthread.h>
-
-/* CreateThread(void v0.1
- * Creates a new thread and gives the argument passed to the function
- * Return 0 on success or -1 on error
+/* Create a new thread and give the argument passed to the function
+ * Returns 0 on success or -1 on error
*/
int CreateThread(void *function_pointer(void *data), void *data)
{
pthread_t lthread;
int ret = 0;
*/
int CreateThread(void *function_pointer(void *data), void *data)
{
pthread_t lthread;
int ret = 0;
- ret = pthread_create(<hread, NULL, function_pointer, (void*)data);
- if(ret != 0)
- {
+ ret = pthread_create(<hread, NULL, function_pointer, (void *)data);
+ if (ret != 0) {
merror(THREAD_ERROR, __local_name);
return (-1);
}
merror(THREAD_ERROR, __local_name);
return (-1);
}
- if(pthread_detach(lthread) != 0)
- {
+ if (pthread_detach(lthread) != 0) {
merror(THREAD_ERROR, __local_name);
merror(THREAD_ERROR, __local_name);
- return(-1);
+ return (-1);
}
}
- return(0);
+ return (0);
}
}
-#endif
-/* EOF */
+#endif /* !WIN32 */
+