[PATCH libICE 4/7] Kill off Time_t macro
Emil Velikov
emil.l.velikov at gmail.com
Sun May 8 08:19:33 UTC 2016
Analogous to previous commit, including the megacommit that removed the
need for it.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/authutil.c | 5 ++---
src/iceauth.c | 1 -
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/authutil.c b/src/authutil.c
index 04c0791..3c55827 100644
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -38,7 +38,6 @@ Author: Ralph Mor, X Consortium
#include <limits.h>
#include <time.h>
-#define Time_t time_t
#ifndef X_NOT_POSIX
#include <unistd.h>
#else
@@ -137,7 +136,7 @@ IceLockAuthFile (
{
char creat_name[1025], link_name[1025];
struct stat statb;
- Time_t now;
+ time_t now;
int creat_fd = -1;
if ((int) strlen (file_name) > 1022)
@@ -148,7 +147,7 @@ IceLockAuthFile (
if (stat (creat_name, &statb) != -1)
{
- now = time ((Time_t *) 0);
+ now = time ((time_t *) 0);
/*
* NFS may cause ctime to be before now, special
diff --git a/src/iceauth.c b/src/iceauth.c
index ed31683..ecf9c0c 100644
--- a/src/iceauth.c
+++ b/src/iceauth.c
@@ -34,7 +34,6 @@ Author: Ralph Mor, X Consortium
#include <X11/ICE/ICEutil.h>
#include <time.h>
-#define Time_t time_t
#ifdef HAVE_LIBBSD
#include <bsd/stdlib.h> /* for arc4random_buf() */
--
2.8.0
More information about the xorg-devel
mailing list