On Wed, Oct 21, 2009 at 1:43 PM, David Hall <[email protected]> wrote:

> on linux, pid_t is an int and on solaris, it is a long.  While probably
> unnecessary, you can cast to (long) and change the printf to %ld.
>

You might also want to look at the printf-related macros (called PRI...) in
<inttypes.h>. With those you can avoid hard-coding numeric size specifiers
in printf()/scanf() format strings. They take some getting used to, but they
are helpful when building across 32- and 64-bit.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to