Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 85a30903ea3ba4232379bbbcb54960307d5a2da0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 2 Sep 2022 18:49:03 -0700 |
| 4 | Subject: [PATCH] spacedream: Add typecast to pthread_t in assignment |
| 5 | |
| 6 | render_loop_thread is of type pthread_t, therefore -1 which is int can |
| 7 | not be assigned to it. Do the needed typecast conversion |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | src/spacedream/main.c | 4 ++-- |
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/src/spacedream/main.c b/src/spacedream/main.c |
| 16 | index 430800f..8e1887c 100644 |
| 17 | --- a/src/spacedream/main.c |
| 18 | +++ b/src/spacedream/main.c |
| 19 | @@ -205,7 +205,7 @@ void unload_stars() |
| 20 | int main( int argc, char *argv[] ) |
| 21 | { |
| 22 | int quit = 0; |
| 23 | - pthread_t render_loop_thread = -1; |
| 24 | + pthread_t render_loop_thread = (pthread_t)-1; |
| 25 | |
| 26 | IDirectFBSurface *primary; |
| 27 | IDirectFBEventBuffer *buffer; |
| 28 | @@ -344,7 +344,7 @@ int main( int argc, char *argv[] ) |
| 29 | pthread_cancel( render_loop_thread ); |
| 30 | pthread_mutex_unlock( &render_start ); |
| 31 | pthread_join( render_loop_thread, NULL ); |
| 32 | - render_loop_thread = -1; |
| 33 | + render_loop_thread = (pthread_t)-1; |
| 34 | |
| 35 | |
| 36 | unload_stars(); |
| 37 | -- |
| 38 | 2.37.3 |
| 39 | |