test/kits/net: Fix build of cookie_test

This commit is contained in:
Alexander von Gluck IV
2015-07-26 09:55:45 -05:00
parent eef1c442a3
commit 89de782660
+2 -2
View File
@@ -53,7 +53,7 @@ void stressTest(int32 domainNumber, int32 totalCookies, char** flat, ssize_t* si
} }
delete watch; delete watch;
BNetworkCookie* c; const BNetworkCookie* c;
int16 domain = (rand() % domainNumber); int16 domain = (rand() % domainNumber);
BString host("http://"); BString host("http://");
host << domains[domain] << "/"; host << domains[domain] << "/";
@@ -94,7 +94,7 @@ main(int, char**)
j.Unflatten(B_ANY_TYPE, flatJar, size); j.Unflatten(B_ANY_TYPE, flatJar, size);
int32 count = 0; int32 count = 0;
BNetworkCookie* c; const BNetworkCookie* c;
for (BNetworkCookieJar::Iterator it(j.GetIterator()); (c = it.Next()); ) for (BNetworkCookieJar::Iterator it(j.GetIterator()); (c = it.Next()); )
count++; count++;
cout << "Count : " << count << endl; cout << "Count : " << count << endl;