# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1671957526 0 # Node ID 2b7babf491e1ab326c496f16ccd09763f1cf91c5 # Parent 9fd16f694a778873b0c7360ea5bc2f25e94b8798 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. diff -r 9fd16f694a77 -r 2b7babf491e1 gtk/dw.c --- 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 diff -r 9fd16f694a77 -r 2b7babf491e1 gtk3/dw.c --- a/gtk3/dw.c Sun Dec 25 05:00:32 2022 +0000 +++ b/gtk3/dw.c Sun Dec 25 08:38:46 2022 +0000 @@ -2051,7 +2051,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 diff -r 9fd16f694a77 -r 2b7babf491e1 gtk4/dw.c --- a/gtk4/dw.c Sun Dec 25 05:00:32 2022 +0000 +++ b/gtk4/dw.c Sun Dec 25 08:38:46 2022 +0000 @@ -1522,7 +1522,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