git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.
[sliver-openvswitch.git]
/
lib
/
lockfile.c
diff --git
a/lib/lockfile.c
b/lib/lockfile.c
index
84bfb3c
..
690caf9
100644
(file)
--- a/
lib/lockfile.c
+++ b/
lib/lockfile.c
@@
-151,7
+151,7
@@
lockfile_postfork(void)
{
struct lockfile *lockfile;
{
struct lockfile *lockfile;
- HMAP_FOR_EACH (lockfile,
struct lockfile,
hmap_node, &lock_table) {
+ HMAP_FOR_EACH (lockfile, hmap_node, &lock_table) {
if (lockfile->fd >= 0) {
VLOG_WARN("%s: child does not inherit lock", lockfile->name);
lockfile_unhash(lockfile);
if (lockfile->fd >= 0) {
VLOG_WARN("%s: child does not inherit lock", lockfile->name);
lockfile_unhash(lockfile);
@@
-171,7
+171,7
@@
lockfile_find(dev_t device, ino_t inode)
{
struct lockfile *lockfile;
{
struct lockfile *lockfile;
- HMAP_FOR_EACH_WITH_HASH (lockfile,
struct lockfile,
hmap_node,
+ HMAP_FOR_EACH_WITH_HASH (lockfile, hmap_node,
lockfile_hash(device, inode), &lock_table) {
if (lockfile->device == device && lockfile->inode == inode) {
return lockfile;
lockfile_hash(device, inode), &lock_table) {
if (lockfile->device == device && lockfile->inode == inode) {
return lockfile;