mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
fix some cast warnings in kinit wrapper
This commit is contained in:
parent
bc27b494a1
commit
2124df17ec
1 changed files with 2 additions and 2 deletions
|
@ -318,7 +318,7 @@ static int kwrapper_run( pid_t wrapped, int sock )
|
|||
}
|
||||
|
||||
read_socket(sock, buffer, header.arg_length);
|
||||
pid = ((long *) buffer)[0];
|
||||
pid = buffer[0];
|
||||
if( pid != kwrapper_pid)
|
||||
{
|
||||
fprintf(stderr, "Unexpected LAUNCHER_CHILD_DIED from KInit - pid = %ld\n", pid);
|
||||
|
@ -557,7 +557,7 @@ int main(int argc, char **argv)
|
|||
exit(255);
|
||||
}
|
||||
read_socket(sock, buffer, header.arg_length);
|
||||
pid = *((long *) buffer);
|
||||
pid = *(buffer);
|
||||
if( !kwrapper ) /* kwrapper shouldn't print any output */
|
||||
printf("Launched ok, pid = %ld\n", pid);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue