Browse Source

* Fixed compilation of the test after r16326

git-svn-id: trunk@18017 -
sergei 14 years ago
parent
commit
4d0e8ca896
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/test/packages/webtbs/tw14265.pp

+ 2 - 2
tests/test/packages/webtbs/tw14265.pp

@@ -29,12 +29,12 @@ var
   attr: TThreadAttr;
   attr: TThreadAttr;
 begin
 begin
   Writeln('Testing simple thread creation');
   Writeln('Testing simple thread creation');
-  pthread_attr_init(attr);
+  pthread_attr_init(@attr);
   for i := 1 to N do
   for i := 1 to N do
   begin
   begin
     Writeln('Creating thread #',i);
     Writeln('Creating thread #',i);
     arg[i] := i;
     arg[i] := i;
-    if pthread_create(threads[i], attr, @Hello, @arg[i]) <> 0 then
+    if pthread_create(@threads[i], @attr, @Hello, @arg[i]) <> 0 then
       Writeln('Failed to create thread');
       Writeln('Failed to create thread');
   end;
   end;
   for i := 1 to N do
   for i := 1 to N do