Projects
Browse Source     Search     Timeline     Wiki

Changeset 23388

Show
Ignore:
Timestamp:
09/14/07 13:25:43 (15 months ago)
Author:
zarzycki@…
Message:

We need to finish building launchd with -Wshorten-64-to-32 someday...

Location:
trunk/launchd/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchctl.c

    r23378 r23388  
    30553055 
    30563056                if (fstat(fd, &sb) != -1) {  
    3057                         if ((junkbuf = malloc(sb.st_size)) != NULL) { 
    3058                                 assumes(read(fd, junkbuf, sb.st_size) == sb.st_size); 
     3057                        if ((sb.st_size < 10*1024*1024) && (junkbuf = malloc((size_t)sb.st_size)) != NULL) { 
     3058                                assumes(read(fd, junkbuf, (size_t)sb.st_size) == (ssize_t)sb.st_size); 
    30593059                                free(junkbuf); 
    30603060                        } 
  • trunk/launchd/src/launchd_core_logic.c

    r23386 r23388  
    23442344 
    23452345        if (j->start_time && (td < j->min_run_time) && !j->legacy_mach_job && !j->inetcompat) { 
    2346                 time_t respawn_delta = j->min_run_time - td; 
     2346                time_t respawn_delta = j->min_run_time - (uint32_t)td; 
    23472347 
    23482348                /* 
     
    58995899                job_assumes(j, obj_at_idx = launch_data_array_get_index(out_obj_array, l2l_i)); 
    59005900                job_assumes(j, tmp = launch_data_dict_lookup(obj_at_idx, TAKE_SUBSET_PID)); 
    5901                 target_pid = launch_data_get_integer(tmp); 
     5901                target_pid = (pid_t)launch_data_get_integer(tmp); 
    59025902                job_assumes(j, tmp = launch_data_dict_lookup(obj_at_idx, TAKE_SUBSET_PERPID)); 
    59035903                serv_perpid = launch_data_get_bool(tmp); 
  • trunk/launchd/src/launchproxy.c

    r23378 r23388  
    109109        tmp = launch_data_dict_lookup(resp, LAUNCH_JOBKEY_TIMEOUT); 
    110110        if (tmp) 
    111                 timeout.tv_sec = launch_data_get_integer(tmp); 
     111                timeout.tv_sec = (int)launch_data_get_integer(tmp); 
    112112 
    113113        tmp = launch_data_dict_lookup(resp, LAUNCH_JOBKEY_PROGRAM);