[Olsr-dev] [PATCH v1 2/4] win32: remove unused getpid() function

Ferry Huberts (spam-protected)
Fri Nov 9 17:59:39 CET 2012


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/win32/compat.c | 7 -------
 src/win32/unistd.h | 2 --
 2 files changed, 9 deletions(-)

diff --git a/src/win32/compat.c b/src/win32/compat.c
index 25ff634..c837698 100644
--- a/src/win32/compat.c
+++ b/src/win32/compat.c
@@ -94,13 +94,6 @@ random(void)
 }
 
 int
-getpid(void)
-{
-  HANDLE h = GetCurrentThread();
-  return (int)h;
-}
-
-int
 nanosleep(struct timespec *Req, struct timespec *Rem)
 {
   Sleep(Req->tv_sec * 1000 + Req->tv_nsec / 1000000);
diff --git a/src/win32/unistd.h b/src/win32/unistd.h
index 6e9bc96..a719173 100644
--- a/src/win32/unistd.h
+++ b/src/win32/unistd.h
@@ -54,8 +54,6 @@ unsigned int random(void);
 
 char *StrError(unsigned int ErrNo);
 
-int getpid(void);
-
 #define IPTOS_TOS(x) ((x) & 0x1e)
 #define IPTOS_PREC(x) ((x) & 0xe0)
 
-- 
1.7.11.7





More information about the Olsr-dev mailing list