Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/include/fileman.hpp

    r17 r39  
    3232    public :
    3333    net_socket *sock;
    34     void r_close(char *reason);
     34    void r_close(char const *reason);
    3535    int32_t size;   // server tells us the size of the file when we open it
    3636    int open_local;
    3737    remote_file *next;
    38     remote_file(net_socket *sock, char *filename, char *mode, remote_file *Next);
     38    remote_file(net_socket *sock, char const *filename, char const *mode, remote_file *Next);
    3939
    4040    int unbuffered_read(void *buffer, size_t count);
    41     int unbuffered_write(void *buf, size_t count) { return 0; } // not supported
     41    int unbuffered_write(void const *buf, size_t count) { return 0; } // not supported
    4242    int32_t unbuffered_tell();
    4343    int32_t unbuffered_seek(int32_t offset);
     
    6363
    6464
    65   int rf_open_file(char *&filename, char *mode);
     65  int rf_open_file(char const *&filename, char const *mode);
    6666  int32_t rf_tell(int fd);
    6767  int32_t rf_seek(int fd, int32_t offset);
Note: See TracChangeset for help on using the changeset viewer.