]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/commit
MFC r209263:
authorpjd <pjd@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jun 2010 23:07:57 +0000 (23:07 +0000)
committerpjd <pjd@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jun 2010 23:07:57 +0000 (23:07 +0000)
commitb32ee30a095b08f4b2429c1f182c8715e2927220
tree36ac0c0cbccd91826e5761a860a28dd578daa023
parent366281054272b641d79892b116f93b1a61930f83
MFC r209263:

r209175:

Eliminate dead code.

Found by: Coverity Prevent
CID: 5158

r209177:

Remove macros that are not really needed. The idea was to have them in case
we grow more descriptors, but I'll reconsider readding them once we get there.

Passing (a = b) expression to FD_ISSET() is bad idea, as FD_ISSET() evaluates
its argument twice.

Found by: Coverity Prevent
CID: 5243

r209179:

Plug memory leaks.

Found by: Coverity Prevent
CID: 7052, 7053, 7054, 7055

r209180:

Plug memory leak.

Found by: Coverity Prevent
CID: 7051

r209181:

Plug memory leak.

Found by: Coverity Prevent
CID: 7056

r209182:

Plug memory leak.

Found by: Coverity Prevent
CID: 7057

r209183:

Initialize gctl_seq for synchronization requests.

Reported by: hiroshi@soupacific.com
Analysed by: Mikolaj Golub <to.my.trociny@gmail.com>
Tested by: hiroshi@soupacific.com, Mikolaj Golub <to.my.trociny@gmail.com>

r209184:

Fix typos.

r209185:

Correct various log messages.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

Note that without some of these changes hastd won't work on 8.x properly.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/releng/8.1@209488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/hastd/ebuf.c
sbin/hastd/hast_proto.c
sbin/hastd/hastd.c
sbin/hastd/metadata.c
sbin/hastd/nv.c
sbin/hastd/primary.c
sbin/hastd/secondary.c