~j-pureftpd/gearmand/tokyo

« back to all changes in this revision

Viewing changes to examples/reverse_worker.c

  • Committer: Frank Denis
  • Date: 2009-06-22 14:50:52 UTC
  • mfrom: (50.1.1 gearmand)
  • Revision ID: j@jedi.devteam.orbus.fr-20090622145052-s40f87uem2zrmvdz
Sync with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    switch(c)
48
48
    {
49
49
    case 'c':
50
 
      count= atoi(optarg);
 
50
      count= (uint32_t)atoi(optarg);
51
51
      break;
52
52
 
53
53
    case 'd':
59
59
      break;
60
60
 
61
61
    case 'p':
62
 
      port= atoi(optarg);
 
62
      port= (in_port_t)atoi(optarg);
63
63
      break;
64
64
 
65
65
    case 's':
164
164
 
165
165
    if (options & REVERSE_WORKER_OPTIONS_STATUS)
166
166
    {
167
 
      *ret_ptr= gearman_job_status(job, y, *result_size);
 
167
      *ret_ptr= gearman_job_status(job, (uint32_t)y, (uint32_t)*result_size);
168
168
      if (*ret_ptr != GEARMAN_SUCCESS)
169
169
      {
170
170
        free(result);