Commit 9ca8899a authored by Jehan's avatar Jehan

libgimpbase, tools: clean some warnings on a Win32 build.

parent a700b15e
......@@ -200,7 +200,7 @@ is_script (const gchar *filename)
if (exts == NULL)
{
pathext = g_getenv ("PATHEXT");
pathext = (gchar *) g_getenv ("PATHEXT");
if (pathext != NULL)
{
exts = g_strsplit (pathext, G_SEARCHPATH_SEPARATOR_S, 100);
......
......@@ -28,7 +28,7 @@ resume_process (DWORD dwOwnerPID)
if (te32.th32OwnerProcessID == dwOwnerPID)
{
HANDLE hThread = OpenThread (THREAD_SUSPEND_RESUME, FALSE, te32.th32ThreadID);
printf ("Resuming Thread: %u\n",te32.th32ThreadID);
printf ("Resuming Thread: %u\n", (unsigned int) te32.th32ThreadID);
ResumeThread (hThread);
CloseHandle (hThread);
}
......@@ -62,7 +62,9 @@ process_list (void)
{
do
{
printf ("PID:\t%u\t%s\n", pe32.th32ProcessID, pe32.szExeFile);
printf ("PID:\t%u\t%s\n",
(unsigned int) pe32.th32ProcessID,
pe32.szExeFile);
}
while (Process32Next (hProcessSnap, &pe32));
bRet = TRUE;
......@@ -90,12 +92,12 @@ main (int argc,
pid = atoi (argv[1]);
if (pid == 0)
{
printf ("invalid: %s\n", pid);
printf ("invalid: %lu\n", pid);
return 1;
}
else
{
printf ("process: %u\n", pid);
printf ("process: %lu\n", pid);
resume_process (pid);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment