Changeset 945


Ignore:
Timestamp:
05/25/07 10:45:57 (5 years ago)
Author:
aj
Message:

fix more compiler warnings.

Location:
trunk/src/ct
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ct/path.c

    r876 r945  
    1111#include <limits.h> 
    1212#include <stdlib.h> 
     13#include <openct/path.h> 
    1314 
    1415/* 
  • trunk/src/ct/socket.c

    r886 r945  
    293293 * Should move this to a platform specific file 
    294294 */ 
    295 int ct_socket_getcreds(ct_socket_t * sock) 
     295static int ct_socket_getcreds(ct_socket_t * sock) 
    296296{ 
    297297#ifdef SO_PEERCRED 
     
    610610 * Default send/receive handlers 
    611611 */ 
    612 int ct_socket_default_recv_cb(ct_socket_t * sock) 
     612static int ct_socket_default_recv_cb(ct_socket_t * sock) 
    613613{ 
    614614        char buffer[CT_SOCKET_BUFSIZ + 64]; 
     
    661661} 
    662662 
    663 int ct_socket_default_send_cb(ct_socket_t * sock) 
     663static int ct_socket_default_send_cb(ct_socket_t * sock) 
    664664{ 
    665665        return ct_socket_flsbuf(sock, 0); 
  • trunk/src/ct/status.c

    r861 r945  
    5454                prot |= PROT_WRITE; 
    5555 
    56         addr = mmap(0, *size, prot, MAP_SHARED, fd, 0); 
     56        addr = mmap(NULL, *size, prot, MAP_SHARED, fd, 0); 
    5757 
    5858      done:close(fd); 
     
    174174 * Lock file handling 
    175175 */ 
    176 int ct_status_lock(void) 
     176static int ct_status_lock(void) 
    177177{ 
    178178        int fd, retries = 10; 
     
    203203} 
    204204 
    205 void ct_status_unlock(void) 
     205static void ct_status_unlock(void) 
    206206{ 
    207207        char status_lock_path[PATH_MAX]; 
Note: See TracChangeset for help on using the changeset viewer.