summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2016-05-08 09:19:33 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2017-09-07 13:47:15 +0100
commitd603d7d7d989c4ff1094810e9fcf2a29bc00bb0c (patch)
treeda2196d2fc8178bb251d2b7d5e06cab2f627c6bc
parent82250f26fc76d7b7574cfd472646a98e325d944a (diff)
downloadxorg-lib-libICE-d603d7d7d989c4ff1094810e9fcf2a29bc00bb0c.tar.gz
Kill off Time_t macro
Analogous to previous commit, including the megacommit that removed the need for it. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (IRC)
-rw-r--r--src/authutil.c5
-rw-r--r--src/iceauth.c1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/authutil.c b/src/authutil.c
index ca0504a..29072d5 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
@@ -139,7 +138,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)
@@ -150,7 +149,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 de4785b..7e25148 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() */