VirtualBox

Changeset 24320 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Nov 4, 2009 11:38:15 AM (15 years ago)
Author:
vboxsync
Message:

more RT_ZERO()

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r20342 r24320  
    4343        }
    4444
    45         memset(&params, 0, sizeof(params));
     45        RT_ZERO(params);
    4646
    4747        sf_d = sf_dir_info_alloc ();
     
    409409#endif
    410410
    411         memset(&params, 0, sizeof(params));
     411        RT_ZERO(params);
    412412        /* Ensure that the shared folders host service is using our fMode
    413413         * paramter */
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r24293 r24320  
    271271        }
    272272
    273         memset(&params, 0, sizeof(params));
     273        RT_ZERO(params);
    274274        params.Handle = SHFL_HANDLE_NIL;
    275275        /* We check the value of params.Handle afterwards to find out if
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r23621 r24320  
    169169        TRACE ();
    170170
    171         memset(&params, 0, sizeof(params));
     171        RT_ZERO(params);
    172172        params.CreateFlags = SHFL_CF_LOOKUP | SHFL_CF_ACT_FAIL_IF_NEW;
    173173        LogFunc(("calling vboxCallCreate, file %s, flags %#x\n",
     
    294294        err  = 0;
    295295
    296         memset(&params, 0, sizeof(params));
     296        RT_ZERO(params);
    297297
    298298        params.CreateFlags = SHFL_CF_ACT_OPEN_IF_EXISTS
     
    324324#define mode_set(r) ((iattr->ia_mode & (S_##r)) ? RTFS_UNIX_##r : 0)
    325325
    326             memset(&info, 0, sizeof(info));
     326            RT_ZERO(info);
    327327            if (iattr->ia_valid & ATTR_MODE)
    328328            {
     
    365365        if (iattr->ia_valid & ATTR_SIZE)
    366366        {
    367             memset(&info, 0, sizeof(info));
     367            RT_ZERO(info);
    368368            info.cbObject = iattr->ia_size;
    369369            cbBuffer = sizeof(info);
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r23551 r24320  
    8181        }
    8282
    83         memset(sf_g, 0, sizeof(*sf_g));
     83        RT_ZERO(*sf_g);
    8484
    8585        if (   info->nullchar     != '\0'
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette