Skip to content
Snippets Groups Projects
Commit ac4a9f30 authored by Lais Frigério's avatar Lais Frigério
Browse files

Update #includes on .cpp and .h

parent 05abb368
No related branches found
No related tags found
2 merge requests!51Merge development to master,!15Update #includes on .cpp and .h
Pipeline #
#pragma once
#include <sys/utsname.h>
#include <fstream>
#include <string>
#include <cstring>
int open_file(std::string name, std::ifstream& fstream);
std::string get_distro();
#pragma once
#include <fstream>
#include <iostream>
#include <string>
#include <cstring>
std::string get_macaddr();
......@@ -3,11 +3,10 @@
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <iostream>
#include <string>
std::string get_machine_type();
......@@ -9,7 +9,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
......
#pragma once
#include <string.h>
#include <sys/utsname.h>
#include <time.h>
#include <iostream>
......
......@@ -20,7 +20,6 @@
*/
#include <agent/linux/get_date.h>
#include <string>
std::string get_date() {
std::string res = "";
......
......@@ -20,7 +20,6 @@
*/
#include "agent/linux/get_distro.h"
#include <string>
int open_file(std::string name, std::ifstream& fstream) {
fstream.open(name);
......
......@@ -20,7 +20,6 @@
*/
#include <agent/linux/get_macaddr.h>
#include <string>
std::string get_macaddr() {
std::fstream file;
......
......@@ -20,7 +20,6 @@
*/
#include <agent/linux/get_machine_type.h>
#include <string>
std::string get_machine_type() {
struct addrinfo hints, *info, *p;
......
......@@ -20,7 +20,6 @@
*/
#include "agent/linux/get_time.h"
#include <string>
// get current time
std::string get_time() {
......
......@@ -31,7 +31,6 @@
*/
#include "agent/linux/get_user_count.h"
#include <string>
#include <set>
/* Global variables */
......
......@@ -20,7 +20,6 @@
*/
#include "agent/linux/inventory.h"
#include <string>
std::string get_processor_model() {
return "unknown";
......
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