Skip to content

Commit

Permalink
Revert "Initialize implicitly referenced fields to keep Valgrind happy."
Browse files Browse the repository at this point in the history
This reverts commit ce3315b.
  • Loading branch information
ljanyst committed Oct 31, 2013
1 parent 94d6546 commit 254cc36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/XrdSys/XrdSysIOEvents.hh
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,6 @@ struct PipeData {char req; char evt; short ent; int fd;
XrdSysSemaphore *theSem;
enum cmd {NoOp = 0, MdFD = 1, Cont = 2, Post = 3,
MiFD = 4, RmFD = 5, Wait = 6, Stop = 7};
inline void Init(cmd cval)
{req=cval; evt=0; ent=0; fd=0; theSem=0;}
};
PipeData reqBuff; // Buffer used by poller thread to recv data
char *pipeBuff; // Read resumption point in buffer
Expand Down
2 changes: 1 addition & 1 deletion src/XrdSys/XrdSysIOEventsPollE.icc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void XrdSys::IOEvents::PollE::Exclude(XrdSys::IOEvents::Channel *cP,
{isLocked = false;
UnLockChannel(cP);
}
cmdbuff.Init(PipeData::Post);
cmdbuff.req = PipeData::Post;
SendCmd(cmdbuff);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/XrdSys/XrdSysIOEventsPollPort.icc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void XrdSys::IOEvents::PollPort::Exclude(XrdSys::IOEvents::Channel *cP,
{isLocked = false;
UnLockChannel(cP);
}
cmdbuff.Init(PipeData::Post);
cmdbuff.req = PipeData::Post;
SendCmd(cmdbuff);
}
}
Expand Down

0 comments on commit 254cc36

Please sign in to comment.