[Pkg-running-devel] [openambit] 61/131: 1900 should be inside endianess handling!
Christian Perrier
bubulle at moszumanska.debian.org
Thu Jul 17 20:19:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
bubulle pushed a commit to branch master
in repository openambit.
commit 90b872c2180c1664a4a22e98c0426e66cb267522
Author: Emil Ljungdahl <emil at kratern.se>
Date: Tue Jan 21 20:56:40 2014 +0100
1900 should be inside endianess handling!
---
src/libambit/libambit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libambit/libambit.c b/src/libambit/libambit.c
index a768893..3859958 100644
--- a/src/libambit/libambit.c
+++ b/src/libambit/libambit.c
@@ -210,7 +210,7 @@ int libambit_date_time_set(ambit_object_t *object, struct tm *tm)
LOG_INFO("Writing date and time to clock");
// Set date
- *(uint16_t*)(&date_data[0]) = 1900 + htole16(tm->tm_year);
+ *(uint16_t*)(&date_data[0]) = htole16(1900 + tm->tm_year);
date_data[2] = 1 + tm->tm_mon;
date_data[3] = tm->tm_mday;
memset(&date_data[4], 0, 4); // ????? Unknown data
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git
More information about the Pkg-running-devel
mailing list