Replaced .h C headers with c-prefixed version and added std:: prefix to C standard library usage (#90)

This was not done to stdint.h for brevity in type names. Also removed "using namespace std;".
This commit is contained in:
Tyler Veness
2016-06-05 07:33:37 -07:00
committed by Peter Johnson
parent 776a991d61
commit 5a82f73d9b
40 changed files with 85 additions and 123 deletions

View File

@@ -8,11 +8,11 @@
#include "CameraServer.h"
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <chrono>
#include <cstring>
#include <iostream>
#include "Utility.h"
@@ -170,7 +170,7 @@ void CameraServer::Serve() {
sockaddr_in address, clientAddress;
memset(&address, 0, sizeof(address));
std::memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl(INADDR_ANY);
address.sin_port = htons(kPort);