Revision: 2589 http://tmux.svn.sourceforge.net/tmux/?rev=2589&view=rev Author: nicm Date: 2011-09-11 23:54:32 +0000 (Sun, 11 Sep 2011) Log Message: ----------- Use %u for process group on Sun OS.
Modified Paths: -------------- trunk/osdep-sunos.c Modified: trunk/osdep-sunos.c =================================================================== --- trunk/osdep-sunos.c 2011-08-25 21:14:23 UTC (rev 2588) +++ trunk/osdep-sunos.c 2011-09-11 23:54:32 UTC (rev 2589) @@ -41,14 +41,13 @@ if ((f = open(tty, O_RDONLY)) < 0) return (NULL); - if ((fstat(f, &st) != 0) || - (ioctl(f, TIOCGPGRP, &pgrp) != 0)) { + if (fstat(f, &st) != 0 || ioctl(f, TIOCGPGRP, &pgrp) != 0) { close(f); return (NULL); } close(f); - xasprintf(&path, "/proc/%hu/psinfo", pgrp); + xasprintf(&path, "/proc/%u/psinfo", (u_int) pgrp); f = open(path, O_RDONLY); xfree(path); if (f < 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs