~j-pureftpd/gearmand/tokyo

« back to all changes in this revision

Viewing changes to bin/gearman.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:
113
113
  args.priority= GEARMAN_JOB_PRIORITY_NORMAL;
114
114
 
115
115
  /* Allocate the maximum number of possible functions. */
116
 
  args.function= malloc(sizeof(char *) * argc);
 
116
  args.function= malloc(sizeof(char *) * (size_t)argc);
117
117
  if (args.function == NULL)
118
118
    GEARMAN_ERROR("malloc:%d", errno)
119
119
 
126
126
      break;
127
127
 
128
128
    case 'c':
129
 
      args.count= atoi(optarg);
 
129
      args.count= (uint32_t)atoi(optarg);
130
130
      break;
131
131
 
132
132
    case 'f':
156
156
      break;
157
157
 
158
158
    case 'p':
159
 
      args.port= atoi(optarg);
 
159
      args.port= (in_port_t)atoi(optarg);
160
160
      break;
161
161
 
162
162
    case 'P':
575
575
    else if (read_ret == 0)
576
576
      break;
577
577
 
578
 
    *workload_offset += read_ret;
 
578
    *workload_offset += (size_t)read_ret;
579
579
  }
580
580
}
581
581