Changeset 64ea525 in mainline for uspace/app/pcapctl/main.c


Ignore:
Timestamp:
2024-12-13T08:44:05Z (15 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
f161ce1
Parents:
1d14090
git-author:
Nataliia Korop <n.corop08@…> (2024-11-10 09:31:01)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
Message:

init dumping destionation move to ops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/pcapctl/main.c

    r1d14090 r64ea525  
    5353
    5454        rc = pcapctl_dump_start(name, sess);
    55         if (rc != EOK)
    56         {
     55        if (rc != EOK) {
    5756                printf("Starting the dumping was not successful.\n");
    5857        }
     
    6968        }
    7069        rc = pcapctl_dump_stop(sess);
    71         if (rc != EOK)
    72         {
     70        if (rc != EOK) {
    7371                printf("Stoping the dumping was not successful.\n");
    7472        }
     
    8179        pcapctl_sess_t *sess = NULL;
    8280        errno_t rc = pcapctl_dump_open(dev_number, &sess);
    83         if (rc != EOK)
    84         {
     81        if (rc != EOK) {
    8582                return rc;
    8683        }
    8784
    8885        rc = pcapctl_dump_set_ops(name, sess);
    89         if (rc != EOK)
    90         {
     86        if (rc != EOK) {
    9187                printf("Setting dumper ops was not successful.\n");
    9288        }
     
    186182                /* stop with dev number */
    187183                stop_dumping(&dev_number);
    188         }
    189         else if (set_ops)
    190         {
     184        } else if (set_ops) {
    191185                set_dumper_ops(&dev_number, ops_name);
    192186        }
Note: See TracChangeset for help on using the changeset viewer.