[Linux-decnet-commit] CVS: dnprogs/phone phone_ncurses.c,1.6,1.7
Brought to you by:
chrissie_c,
ph3-der-loewe
From: Patrick C. <pa...@us...> - 2006-03-17 15:06:28
|
Update of /cvsroot/linux-decnet/dnprogs/phone In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12610 Modified Files: phone_ncurses.c Log Message: Don't cast ints to chars, it breaks on big-endian machines. Index: phone_ncurses.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/phone/phone_ncurses.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** phone_ncurses.c 26 Jan 2006 14:55:01 -0000 1.6 --- phone_ncurses.c 17 Mar 2006 15:06:21 -0000 1.7 *************** *** 177,181 **** for (i=1; i<num_users; i++) { ! send_data(userinfo[i].out_fd, (char *)&key, 1); } return 0; --- 177,182 ---- for (i=1; i<num_users; i++) { ! char keychar = key; ! send_data(userinfo[i].out_fd, (char *)&keychar, 1); } return 0; |