~ubuntu-branches/ubuntu/utopic/tlsdate/utopic-proposed

« back to all changes in this revision

Viewing changes to src/test/rotate.c

  • Committer: Package Import Robot
  • Author(s): Jacob Appelbaum
  • Date: 2013-01-22 23:08:21 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130122230821-820ay2kh785on6yc
Tags: 0.0.5-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <string.h>
 
2
 
 
3
int main(int argc, char *argv[])
 
4
{
 
5
  if (argc < 7)
 
6
    return 3;
 
7
  if (   !strcmp(argv[2], "host1")
 
8
      && !strcmp(argv[4], "port1")
 
9
      && !strcmp(argv[6], "proxy1"))
 
10
    return 1;
 
11
  if (   !strcmp(argv[2], "host2")
 
12
      && !strcmp(argv[4], "port2")
 
13
      && !strcmp(argv[6], "proxy2"))
 
14
    return 2;
 
15
  return 4;
 
16
}