summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-11-08 15:29:03 +0000
committerRodeo <[email protected]>2013-11-08 15:29:03 +0000
commitb811fa73b3ccd3da52b2e5b4d9a38286dd226916 (patch)
tree9e8567579d7663e48304b2e6cb85ca1f2f5cca03
parentde099ce149bd447d66971682f9a4979806443ebe (diff)
ports: cast return result from getpid().
Fixes a warning caused by a type mismatch (int vs. pid_t). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5881 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/ports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 0f5ed363d..4a46cd5c8 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -467,7 +467,7 @@ void hb_get_temporary_directory( char path[512] )
if( base[strlen(base)-1] == '/' )
base[strlen(base)-1] = '\0';
- snprintf( path, 512, "%s/hb.%d", base, getpid() );
+ snprintf( path, 512, "%s/hb.%d", base, (int)getpid() );
}
/************************************************************************