Skip to content
Snippets Groups Projects
Commit e0315ab5 authored by Clara Daia Hilgenberg Daru's avatar Clara Daia Hilgenberg Daru
Browse files

Apply cpplint

parent b288bc35
No related branches found
No related tags found
2 merge requests!51Merge development to master,!24Issue/46
Pipeline #
......@@ -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()) {
......
......@@ -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
......
/* 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment