gcc 4 cleanups (mostly unsigned char* vs char*)

This commit is contained in:
leitner
2005-04-23 15:50:16 +00:00
parent dd5f8d13c3
commit c874604f12
69 changed files with 119 additions and 103 deletions

View File

@@ -1,9 +1,9 @@
#include "byte.h"
#include "buffer.h"
extern int buffer_stubborn(int (*op)(),int fd,const unsigned char* buf, unsigned long int len);
extern int buffer_stubborn(int (*op)(),int fd,const char* buf, unsigned long int len);
int buffer_put(buffer* b,const unsigned char* buf,unsigned long int len) {
int buffer_put(buffer* b,const char* buf,unsigned long int len) {
if (len>b->a-b->p) { /* doesn't fit */
if (buffer_flush(b)==-1) return -1;
if (len>b->a) {