Changeset 374cdb66


Ignore:
Timestamp:
Jul 21, 2023, 8:37:33 PM (16 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0a2e0e21
Parents:
c1b6bc6
Message:

use memset to initialize struct io_uring_sqe to zero in routine zero_sqe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/iofwd.hfa

    rc1b6bc6 r374cdb66  
    1010// Created On       : Thu Apr 23 17:31:00 2020
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Mar 13 23:54:57 2023
    13 // Update Count     : 1
     12// Last Modified On : Fri Jul 21 20:35:53 2023
     13// Update Count     : 2
    1414//
    1515
     
    151151#if CFA_HAVE_LINUX_IO_URING_H
    152152        static inline void zero_sqe(struct io_uring_sqe * sqe) {
    153                 sqe->flags = 0;
    154                 sqe->ioprio = 0;
    155                 sqe->fd = 0;
    156                 sqe->off = 0;
    157                 sqe->addr = 0;
    158                 sqe->len = 0;
    159                 sqe->fsync_flags = 0;
    160                 sqe->__pad2[0] = 0;
    161                 sqe->__pad2[1] = 0;
    162                 sqe->__pad2[2] = 0;
    163                 sqe->fd = 0;
    164                 sqe->off = 0;
    165                 sqe->addr = 0;
    166                 sqe->len = 0;
     153                memset( sqe, 0, sizeof( struct io_uring_sqe ) );
    167154        }
    168155#endif
Note: See TracChangeset for help on using the changeset viewer.