Mercurial > dwindows
comparison android/dw.cpp @ 2856:de1a0cd26691
Android: Forgot Android also used the same semaphore code.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 15 Nov 2022 04:24:25 +0000 |
parents | 5018df4f952e |
children | 761b7a12b079 |
comparison
equal
deleted
inserted
replaced
2855:86286f528adf | 2856:de1a0cd26691 |
---|---|
7289 memcpy(newarray, &array[1], sizeof(struct _dw_seminfo)*(connectcount-1)); | 7289 memcpy(newarray, &array[1], sizeof(struct _dw_seminfo)*(connectcount-1)); |
7290 else | 7290 else |
7291 { | 7291 { |
7292 memcpy(newarray, array, sizeof(struct _dw_seminfo)*z); | 7292 memcpy(newarray, array, sizeof(struct _dw_seminfo)*z); |
7293 if(z!=(connectcount-1)) | 7293 if(z!=(connectcount-1)) |
7294 memcpy(&newarray[z], &array[z+1], sizeof(struct _dw_seminfo)*(z-connectcount-1)); | 7294 memcpy(&newarray[z], &array[z+1], sizeof(struct _dw_seminfo)*(connectcount-(z+1))); |
7295 } | 7295 } |
7296 connectcount--; | 7296 connectcount--; |
7297 | 7297 |
7298 /* Replace old array with new one */ | 7298 /* Replace old array with new one */ |
7299 free(array); | 7299 free(array); |