Enlightenment CVS committal Author : vapier Project : e16 Module : epplets
Dir : e16/epplets/epplets Modified Files: E-Pinger.c Log Message: dont use unsigned buffers since it doesnt matter and all the str* funcs expect signed buffers =================================================================== RCS file: /cvs/e/e16/epplets/epplets/E-Pinger.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- E-Pinger.c 9 Feb 2001 04:41:27 -0000 1.4 +++ E-Pinger.c 15 Apr 2006 20:04:52 -0000 1.5 @@ -48,7 +48,7 @@ static Window win, config_win; static int log_entries, nchild; static char buf[BUF_LEN]; -static unsigned char *result, *new_result; +static char *result, *new_result; static char *host; static int pinger_pause=30; static char cmd[CMD_LEN]; @@ -69,7 +69,7 @@ static void cb_out(void *data, Window w); static void cb_help(void *data); static int bg_system(char *command); -static int nb_read (int fd, unsigned char *buffer, int n); +static int nb_read (int fd, char *buffer, int n); static void start_ping(void); void ping_reaper(void); @@ -144,7 +144,7 @@ /* Non-blocking read */ static int -nb_read (int fd, unsigned char *buffer, int n) +nb_read (int fd, char *buffer, int n) { int bytes_read; int status; @@ -400,10 +400,9 @@ static void cb_timer(void *data) { - time_t now; - int nbyte; - unsigned char *s; - + time_t now; + int nbyte; + char *s; if((nbyte=nb_read(0, new_result, BUF_LEN))>0){ new_result[nbyte-1]='\0'; @@ -466,12 +465,12 @@ 82, 2, 0, 0, "HELP", win, NULL, cb_help, NULL); - if((result=(unsigned char *)malloc(BUF_LEN))==NULL){ + if((result=(char *)malloc(BUF_LEN))==NULL){ perror("main: malloc result"); return(-1); } *result='\0'; - if((new_result=(unsigned char *)malloc(BUF_LEN))==NULL){ + if((new_result=(char *)malloc(BUF_LEN))==NULL){ perror("main: malloc new_result"); return(-1); } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs