src/hg/lib/hgRelate.c 1.28

1.28 2010/04/28 17:42:53 galt
solaris patch for problem reported by user - getPid returns pid_t which is defined as long on solaris - but recommended to cast to int for use with printf
Index: src/hg/lib/hgRelate.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgRelate.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -b -B -U 4 -r1.27 -r1.28
--- src/hg/lib/hgRelate.c	25 Feb 2010 04:08:52 -0000	1.27
+++ src/hg/lib/hgRelate.c	28 Apr 2010 17:42:53 -0000	1.28
@@ -178,9 +178,9 @@
     tmpDir = getenv("TMPDIR");
 if (tmpDir == NULL)
     tmpDir = "/var/tmp";
 if (inclPid)
-    safef(path, PATH_LEN, "%s/%s.%d.tab", tmpDir, tableName, getpid());
+    safef(path, PATH_LEN, "%s/%s.%d.tab", tmpDir, tableName, (int) getpid()); /* int cast for Solaris */
 else
     safef(path, PATH_LEN, "%s/%s.tab", tmpDir, tableName);
 }