Parcourir la source

Remove unused variable from os_gmtime()

Jouni Malinen il y a 13 ans
Parent
commit
fe4c43ce95
3 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 2
      src/utils/os_internal.c
  2. 0 2
      src/utils/os_unix.c
  3. 0 2
      src/utils/os_win32.c

+ 0 - 2
src/utils/os_internal.c

@@ -72,10 +72,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
 
 int os_gmtime(os_time_t t, struct os_tm *tm)
 {
-	time_t t2;
 	struct tm *tm2;
 
-	t2 = t;
 	tm2 = gmtime(&t);
 	if (tm2 == NULL)
 		return -1;

+ 0 - 2
src/utils/os_unix.c

@@ -108,10 +108,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
 
 int os_gmtime(os_time_t t, struct os_tm *tm)
 {
-	time_t t2;
 	struct tm *tm2;
 
-	t2 = t;
 	tm2 = gmtime(&t);
 	if (tm2 == NULL)
 		return -1;

+ 0 - 2
src/utils/os_win32.c

@@ -94,10 +94,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
 
 int os_gmtime(os_time_t t, struct os_tm *tm)
 {
-	time_t t2;
 	struct tm *tm2;
 
-	t2 = t;
 	tm2 = gmtime(&t);
 	if (tm2 == NULL)
 		return -1;