Skip to content

Commit

Permalink
fmk - updating code for c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckenna committed Sep 24, 2021
1 parent df1efce commit 8fed58c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SRC/actor/channel/TCP_Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ TCP_Socket::addToProgram()
static int
GetHostAddr(char *host, char *IntAddr)
{
register struct hostent *hostptr;
// register struct hostent *hostptr;
struct hostent *hostptr;

if ( (hostptr = gethostbyname(host)) == NULL)
return (-1);
Expand Down
3 changes: 2 additions & 1 deletion SRC/actor/channel/UDP_Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,8 @@ UDP_Socket::addToProgram()
static int
GetHostAddr(char *host, char *IntAddr)
{
register struct hostent *hostptr;
// register struct hostent *hostptr;
struct hostent *hostptr;

if ( (hostptr = gethostbyname(host)) == NULL)
return (-1);
Expand Down
3 changes: 2 additions & 1 deletion SRC/domain/domain/DomainModalProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
// What: "@(#) DomainModalProperties.h, revA"

#include <stdlib.h>
#include <math.h>
//#include <math.h>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
Expand Down

0 comments on commit 8fed58c

Please sign in to comment.