SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
benchmarks/siege/patches/patch-src_cookies_c
Normal file
30
benchmarks/siege/patches/patch-src_cookies_c
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: src/cookies.c
|
||||
--- src/cookies.c.orig
|
||||
+++ src/cookies.c
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <cookies.h>
|
||||
|
||||
typedef struct NODE {
|
||||
- size_t threadID;
|
||||
+ pthread_t threadID;
|
||||
COOKIE cookie;
|
||||
struct NODE *next;
|
||||
} NODE;
|
||||
@@ -66,7 +66,7 @@ cookies_destroy(COOKIES this)
|
||||
BOOLEAN
|
||||
cookies_add(COOKIES this, char *str, char *host)
|
||||
{
|
||||
- size_t id = pthread_self();
|
||||
+ pthread_t id = pthread_self();
|
||||
//int hlen = 0;
|
||||
//int dlen = 0;
|
||||
NODE *cur = NULL;
|
||||
@@ -169,7 +169,7 @@ cookies_header(COOKIES this, char *host, char *newton)
|
||||
time_t now;
|
||||
struct tm tm;
|
||||
char oreo[MAX_COOKIES_SIZE];
|
||||
- size_t id = pthread_self();
|
||||
+ pthread_t id = pthread_self();
|
||||
|
||||
memset(oreo, '\0', sizeof oreo);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue