~ubuntu-branches/ubuntu/quantal/curl/quantal-updates

« back to all changes in this revision

Viewing changes to tests/libtest/lib506.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: lib506.c,v 1.18 2008-05-22 21:49:52 danf Exp $
 
8
 * $Id: lib506.c,v 1.22 2008-09-20 04:26:57 yangtse Exp $
9
9
 */
10
10
 
11
11
#include "test.h"
13
13
#include <ctype.h>
14
14
#include <errno.h>
15
15
 
16
 
#include <mprintf.h>
17
 
 
18
 
const char *HOSTHEADER = "Host: www.host.foo.com";
19
 
const char *JAR = "log/jar506";
 
16
#include <curl/mprintf.h>
 
17
 
 
18
#include "memdebug.h"
 
19
 
 
20
static const char *HOSTHEADER = "Host: www.host.foo.com";
 
21
static const char *JAR = "log/jar506";
20
22
#define THREADS 2
21
23
 
22
24
/* struct containing data of a thread */
54
56
      fprintf(stderr, "lock: no such data: %d\n", (int)data);
55
57
      return;
56
58
  }
57
 
  printf("lock:   %-6s <%s>: %d\n", what, user->text, user->counter);
 
59
  printf("lock:   %-6s [%s]: %d\n", what, user->text, user->counter);
58
60
  user->counter++;
59
61
}
60
62
 
78
80
      fprintf(stderr, "unlock: no such data: %d\n", (int)data);
79
81
      return;
80
82
  }
81
 
  printf("unlock: %-6s <%s>: %d\n", what, user->text, user->counter);
 
83
  printf("unlock: %-6s [%s]: %d\n", what, user->text, user->counter);
82
84
  user->counter++;
83
85
}
84
86