spacing
This commit is contained in:
parent
a4c079d1b3
commit
4af979c842
|
@ -231,7 +231,7 @@ bool Monitor::MonitorLink::disconnect() {
|
||||||
struct shmid_ds shm_data;
|
struct shmid_ds shm_data;
|
||||||
if (shmctl(shm_id, IPC_STAT, &shm_data) < 0) {
|
if (shmctl(shm_id, IPC_STAT, &shm_data) < 0) {
|
||||||
Debug(3, "Can't shmctl: %s", strerror(errno));
|
Debug(3, "Can't shmctl: %s", strerror(errno));
|
||||||
return( false );
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
shm_id = 0;
|
shm_id = 0;
|
||||||
|
@ -247,7 +247,6 @@ bool Monitor::MonitorLink::disconnect() {
|
||||||
Debug(3, "Can't shmdt: %s", strerror(errno));
|
Debug(3, "Can't shmdt: %s", strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ZM_MEM_MAPPED
|
#endif // ZM_MEM_MAPPED
|
||||||
mem_size = 0;
|
mem_size = 0;
|
||||||
mem_ptr = nullptr;
|
mem_ptr = nullptr;
|
||||||
|
@ -892,7 +891,6 @@ std::shared_ptr<Monitor> Monitor::Load(unsigned int p_id, bool load_zones, Purpo
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Monitor::connect() {
|
bool Monitor::connect() {
|
||||||
|
|
||||||
if (mem_ptr != nullptr) {
|
if (mem_ptr != nullptr) {
|
||||||
Warning("Already connected. Please call disconnect first.");
|
Warning("Already connected. Please call disconnect first.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue