Mercurial > dwindows
diff gtk/dw.c @ 2904:2b7babf491e1
Solaris: Fix warning because getpid() returns a long int.
Not sure if all versions return long or not... so cast to
long just in case older versions return int.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 25 Dec 2022 08:38:46 +0000 |
parents | 761b7a12b079 |
children | 3fe7641f027c |
line wrap: on
line diff
--- a/gtk/dw.c Sun Dec 25 05:00:32 2022 +0000 +++ b/gtk/dw.c Sun Dec 25 08:38:46 2022 +0000 @@ -2111,7 +2111,7 @@ #elif defined(__sun__) char procpath[101] = {0}; - snprintf(procpath, 100, "/proc/%d/path/a.out", getpid()); + snprintf(procpath, 100, "/proc/%ld/path/a.out", (long)getpid()); if(readlink(procpath, path, PATH_MAX) == -1) #endif