--- src/sample_client.c.orig Sun Sep 28 10:40:03 2003 +++ src/sample_client.c Tue Sep 30 21:35:55 2003 @@ -52,7 +52,6 @@ #include #include "yahoo_util.h" -int fileno(FILE * stream); #define MAX_PREF_LEN 255 @@ -177,7 +176,6 @@ FILE *popen(const char *command, const char *type); int pclose(FILE *stream); -int gethostname(char *name, size_t len); static char * get_local_addresses() { @@ -577,7 +575,7 @@ if(tm) { char timestr[255]; - strncpy(timestr, ctime(&tm), sizeof(timestr)); + strncpy(timestr, ctime((time_t *)&tm), sizeof(timestr)); timestr[strlen(timestr) - 1] = '\0'; print_message(("[Offline message at %s from %s]: %s", @@ -654,7 +652,7 @@ } void ext_yahoo_got_webcam_image(int id, const char *who, - unsigned char *image, unsigned int image_size, unsigned int real_size, + const unsigned char *image, unsigned int image_size, unsigned int real_size, unsigned int timestamp) { static unsigned char *cur_image = NULL;