Page MenuHomeFreeBSD

D7463.diff
No OneTemporary

D7463.diff

Index: head/sys/boot/efi/libefi/time.c
===================================================================
--- head/sys/boot/efi/libefi/time.c
+++ head/sys/boot/efi/libefi/time.c
@@ -228,7 +228,7 @@
}
time_t
-getsecs()
+getsecs(void)
{
return time(0);
}
Index: head/sys/boot/efi/libefi/time_event.c
===================================================================
--- head/sys/boot/efi/libefi/time_event.c
+++ head/sys/boot/efi/libefi/time_event.c
@@ -76,7 +76,7 @@
}
time_t
-getsecs()
+getsecs(void)
{
return time(0);
}
Index: head/sys/boot/i386/libi386/pxe.c
===================================================================
--- head/sys/boot/i386/libi386/pxe.c
+++ head/sys/boot/i386/libi386/pxe.c
@@ -586,7 +586,7 @@
time_t
-getsecs()
+getsecs(void)
{
time_t n = 0;
time(&n);
Index: head/sys/boot/ofw/libofw/ofw_time.c
===================================================================
--- head/sys/boot/ofw/libofw/ofw_time.c
+++ head/sys/boot/ofw/libofw/ofw_time.c
@@ -41,8 +41,8 @@
return secs;
}
-int
-getsecs()
+time_t
+getsecs(void)
{
time_t n = 0;
time(&n);
Index: head/sys/boot/powerpc/kboot/main.c
===================================================================
--- head/sys/boot/powerpc/kboot/main.c
+++ head/sys/boot/powerpc/kboot/main.c
@@ -151,8 +151,8 @@
} while (t < ti + usecs);
}
-int
-getsecs()
+time_t
+getsecs(void)
{
struct host_timeval tv;
host_gettimeofday(&tv, NULL);
Index: head/sys/boot/powerpc/ps3/main.c
===================================================================
--- head/sys/boot/powerpc/ps3/main.c
+++ head/sys/boot/powerpc/ps3/main.c
@@ -179,10 +179,10 @@
tb = mftb();
}
-int
-getsecs()
+time_t
+getsecs(void)
{
- return ((mftb() - basetb)*ns_per_tick/1000000000);
+ return ((time_t)((mftb() - basetb)*ns_per_tick/1000000000));
}
time_t
Index: head/sys/boot/uboot/lib/time.c
===================================================================
--- head/sys/boot/uboot/lib/time.c
+++ head/sys/boot/uboot/lib/time.c
@@ -47,7 +47,7 @@
return (secs);
}
-int
+time_t
getsecs(void)
{

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 27, 9:22 PM (20 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26263226
Default Alt Text
D7463.diff (2 KB)

Event Timeline