Changeset f08447b in mainline for uspace/lib/pcap/src/pcap_iface.c


Ignore:
Timestamp:
2024-12-13T08:44:05Z (10 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
1d14090
Parents:
03cd7a9e
git-author:
Nataliia Korop <n.corop08@…> (2024-10-28 10:18:35)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
Message:

ccheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcap/src/pcap_iface.c

    r03cd7a9e rf08447b  
    8585// }
    8686
    87 
    8887// static pcap_writer_ops_t short_file_ops = {
    8988//      .write_u32 = &pcap_short_file_w32,
     
    9998
    10099        /** When try to start when already started, close current and starts new */
    101         if (dumper->to_dump == true)
    102         {
     100        if (dumper->to_dump == true) {
    103101                pcap_dumper_stop(dumper);
    104102        }
    105103        errno_t rc = pcap_writer_to_file_init(&dumper->writer, name);
    106         if (rc == EOK)
    107         {
     104        if (rc == EOK) {
    108105                dumper->to_dump = true;
    109         }
    110         else
    111         {
     106        } else {
    112107                printf("Failed creating pcap dumper: %s", str_error(rc));
    113108        }
     
    121116        fibril_mutex_lock(&dumper->mutex);
    122117
    123         if (dumper->writer.data == NULL || !dumper->to_dump)
    124         {
     118        if (dumper->writer.data == NULL || !dumper->to_dump) {
    125119                fibril_mutex_unlock(&dumper->mutex);
    126120                return;
Note: See TracChangeset for help on using the changeset viewer.