xfstests: eliminate warnings under dmapi/src/suite1/cmd (2)
[xfstests-dev.git] / dmapi / src / suite1 / cmd / link_test.c
index 3d18de817fd18d9334cb5b937c16c0f921d20933..2d35da8a65c78aac47f67051efba5421d387dfd2 100644 (file)
@@ -36,37 +36,44 @@ main(
        int     argc,
        char    **argv)
 {
-       dm_sessid_t     sid, oldsid, targetsid, *newsidp, *sidbufp;
-       dm_token_t      token, *tokenp, *rtokenp, *tokenbufp;
-       dm_attrname_t   *attrnamep;
-       dm_off_t        off, *offp, *roffp;
-       dm_extent_t     *extentp;
-       dm_inherit_t    *inheritbufp;
-       dm_stat_t       *statp;
-       dm_size_t       len, *dmrlenp, *retvalp;
-       dm_attrloc_t    *locp;
-       dm_eventset_t   *eventsetp;
-       dm_config_t     flagname;
-       dm_region_t     *regbufp;
-       dm_response_t   response;
-       dm_right_t      right, *rightp;
-       dm_igen_t       igen, *igenp;
-       dm_msgtype_t    msgtype;
-       dm_fileattr_t   *attrp;
-       dm_boolean_t    enable, *exactflagp;
-       dm_timestruct_t *delay;
-       mode_t          mode;
-       size_t          hlen, dirhlen, hlen1, hlen2, targhlen, *fshlenp, *hlenp;
-       size_t          msglen, buflen, *rlenp;
-       u_int           nelem, mask, maxmsgs, uflags, *nelemp, maxevent;
-       void            *hanp, *dirhanp, *hanp1, *hanp2, *targhanp;
-       void            *msgdatap, *bufp, **hanpp, *respbufp, **fshanpp;
-       dm_fsid_t       fsid, *fsidp;
-       dm_ino_t        ino, *inop;
-       char            *cname, *sessinfop, *path, *pathbufp, **versionstrpp;
-       int             flags, fd, setdtime, reterror;
-       u_int   urc;
-       int     rc;
+       dm_sessid_t     sid = 0, oldsid = 0, targetsid = 0;
+       dm_sessid_t     *newsidp = NULL, *sidbufp = NULL;
+       dm_token_t      token = 0, *tokenp = NULL;
+       dm_token_t      *rtokenp = NULL, *tokenbufp = NULL;
+       dm_attrname_t   *attrnamep = NULL;
+       dm_off_t        off = 0, *offp = NULL, *roffp = NULL;
+       dm_extent_t     *extentp = NULL;
+       dm_inherit_t    *inheritbufp = NULL;
+       dm_stat_t       *statp = NULL;
+       dm_size_t       len = 0, *dmrlenp = NULL, *retvalp = NULL;
+       dm_attrloc_t    *locp = NULL;
+       dm_eventset_t   *eventsetp = NULL;
+       dm_config_t     flagname = DM_CONFIG_INVALID;
+       dm_region_t     *regbufp = NULL;
+       dm_response_t   response = DM_RESP_INVALID;
+       dm_right_t      right = DM_RIGHT_NULL, *rightp = NULL;
+       dm_igen_t       igen, *igenp = NULL;
+       dm_msgtype_t    msgtype = DM_MSGTYPE_INVALID;
+       dm_fileattr_t   *attrp = NULL;
+       dm_boolean_t    enable = 0, *exactflagp = NULL;
+       dm_timestruct_t *delay = NULL;
+       mode_t          mode = 0;
+       size_t          hlen = 0, dirhlen = 0, hlen1 = 0, hlen2 = 0;
+       size_t          targhlen = 0, *fshlenp = NULL, *hlenp = NULL;
+       size_t          msglen = 0, buflen = 0, *rlenp = NULL;
+       u_int           nelem = 0, mask = 0, maxmsgs = 0, uflags = 0;
+       u_int           *nelemp = NULL, maxevent = 0;
+       void            *hanp = NULL, *dirhanp = NULL;
+       void            *hanp1 = NULL, *hanp2 = NULL, *targhanp = NULL;
+       void            *msgdatap = NULL, *bufp = NULL, **hanpp = NULL;
+       void            *respbufp = NULL, **fshanpp = NULL;
+       dm_fsid_t       fsid, *fsidp = NULL;
+       dm_ino_t        ino, *inop = NULL;
+       char            *cname = NULL, *sessinfop = NULL;
+       char            *path = NULL, *pathbufp = NULL, **versionstrpp = NULL;
+       int             flags = 0, fd = 0, setdtime = 0, reterror = 0;
+       u_int           urc;
+       int             rc;
        dm_ssize_t      ssrc;
 
 /* Definitions per the prototypes in dmport.h, in the same order. */