2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

lldp: Use OVS time functions.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2015-03-03 15:34:07 -08:00
parent 4eb6eec6f8
commit d9f3b69e7c
2 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
/* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2015 Nicira, Inc.
* Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -18,9 +19,9 @@
#include <config.h>
#include "lldpd-structs.h"
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "lldpd.h"
#include "timeval.h"
VLOG_DEFINE_THIS_MODULE(lldpd_structs);
@@ -69,7 +70,7 @@ lldpd_remote_cleanup(struct lldpd_hardware *hw,
{
struct lldpd_port *port, *port_next;
int del;
time_t now = time(NULL);
time_t now = time_now();
VLOG_DBG("cleanup remote port on %s", hw->h_ifname);
LIST_FOR_EACH_SAFE (port, port_next, p_entries, &hw->h_rports.p_entries) {