diff --git a/src/linux/get_disks_info.cpp b/src/linux/get_disks_info.cpp index 8faf3170ee996f973784802bf5cf37c2cb5422e0..dffb40f056c8d991af0c724707ac4fe1bddbefd4 100644 --- a/src/linux/get_disks_info.cpp +++ b/src/linux/get_disks_info.cpp @@ -27,7 +27,7 @@ #include "agent/linux/get_disks_info.h" -void get_scsi_disks(std::list<disk_t>& disks) { +void get_scsi_disks(std::list<disk_t>& disks) { // NOLINT(runtime/references) struct udev *udev; struct udev_enumerate *enumerate; @@ -108,7 +108,7 @@ void get_scsi_disks(std::list<disk_t>& disks) { } -void get_disks_info(std::list<disk_t>& disks) { +void get_disks_info(std::list<disk_t>& disks) { // NOLINT(runtime/references) get_scsi_disks(disks); if (disks.empty()) { diff --git a/src/linux/inventory.cpp b/src/linux/inventory.cpp index 7715079ab70fcc47c706facfffe0f11a5308ffd0..95162517dee5f5680a2a1a9d8b3f74c1416028b8 100644 --- a/src/linux/inventory.cpp +++ b/src/linux/inventory.cpp @@ -22,9 +22,9 @@ #include <list> #include "agent/linux/inventory.h" -Json::Value get_inventory(){ +Json::Value get_inventory() { - Json::Value inv; + Json::Value inv; // os info diff --git a/src/linux/open_file.cpp b/src/linux/open_file.cpp index 8585b2fc1b06f57b3ca5873e6c13bb121a9ae7bf..10bcd1de77d261255c3edb0c7163943bb914dc13 100644 --- a/src/linux/open_file.cpp +++ b/src/linux/open_file.cpp @@ -1,10 +1,31 @@ +/* Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre + * Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + * + * This file is part of simmc-agent + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. + */ + #include "agent/linux/open_file.h" -int open_file(std::string name, std::ifstream& fstream){ - fstream.open(name); - if (fstream.is_open()) - return 1; - else - return 0; +int open_file(std::string name, std::ifstream& fstream) { + fstream.open(name); + if (fstream.is_open()) + return 1; + else + return 0; }