[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/lib
From: |
shishi-commit |
Subject: |
CVS shishi/lib |
Date: |
Tue, 7 Feb 2006 13:32:05 +0100 |
Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv26493
Modified Files:
utils.h utils.c krberror.c
Log Message:
Remove xgettimeofday.
--- /home/cvs/shishi/lib/utils.h 2005/05/26 15:12:35 1.2
+++ /home/cvs/shishi/lib/utils.h 2006/02/07 12:32:04 1.3
@@ -1,5 +1,5 @@
/* utils.h --- Auxilliary help prototypes.
- * Copyright (C) 2002, 2003 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2006 Simon Josefsson
*
* This file is part of Shishi.
*
@@ -24,4 +24,3 @@
extern void _shishi_binprint (const char *str, int len);
extern void _shishi_bin7print (const char *str, int len);
extern time_t xtime (time_t * t);
-extern int xgettimeofday (struct timeval *tv, struct timezone *tz);
--- /home/cvs/shishi/lib/utils.c 2005/05/26 15:12:35 1.11
+++ /home/cvs/shishi/lib/utils.c 2006/02/07 12:32:04 1.12
@@ -1,5 +1,5 @@
/* utils.c --- Auxilliary help functions.
- * Copyright (C) 2002, 2003, 2004 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2006 Simon Josefsson
*
* This file is part of Shishi.
*
@@ -119,21 +119,6 @@
return now;
}
-int
-xgettimeofday (struct timeval *tv, struct timezone *tz)
-{
- int rc;
-
- rc = gettimeofday (tv, tz);
- if (rc != 0)
- {
- perror ("gettimeofday");
- abort ();
- }
-
- return rc;
-}
-
time_t
shishi_get_date (const char *p, const time_t * now)
{
--- /home/cvs/shishi/lib/krberror.c 2005/05/26 15:12:34 1.44
+++ /home/cvs/shishi/lib/krberror.c 2006/02/07 12:32:04 1.45
@@ -1,5 +1,5 @@
/* krberror.c --- Functions related to KRB-ERROR packet.
- * Copyright (C) 2002, 2003, 2004 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2006 Simon Josefsson
*
* This file is part of Shishi.
*
@@ -21,9 +21,6 @@
#include "internal.h"
-/* Get xgettimeofday. */
-#include "utils.h"
-
/* Get _shishi_print_armored_data, etc. */
#include "diskio.h"
@@ -49,7 +46,9 @@
struct timezone tz;
int rc;
- xgettimeofday (&tv, &tz);
+ rc = gettimeofday (tv, tz);
+ if (rc != 0)
+ return NULL;
krberror = shishi_asn1_krberror (handle);
if (!krberror)
- CVS shishi/lib,
shishi-commit <=
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07
- CVS shishi/lib, shishi-commit, 2006/02/07