[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_2-56-gf09010
From: |
Mats Erik Andersson |
Subject: |
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_2-56-gf09010f |
Date: |
Sat, 21 Mar 2015 22:41:03 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".
The branch, master has been updated
via f09010fcda33e679d59ae53565f14a3e576ae138 (commit)
from 6b95da18a8c6cff38bc212a20a6bd9d1333ee956 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=f09010fcda33e679d59ae53565f14a3e576ae138
commit f09010fcda33e679d59ae53565f14a3e576ae138
Author: Mats Erik Andersson <address@hidden>
Date: Sat Mar 21 23:28:52 2015 +0100
Portability of time format string.
diff --git a/ChangeLog b/ChangeLog
index a0e7a58..a74d968 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2015-03-21 Mats Erik Andersson <address@hidden>
+
+ Portability of time format string.
+
+ * telnetd/utility.c (_var_short_name) <case 'd'>: Change `%P'
+ to `%p' in format string for strftime(), as the former is a
+ GNU exclusive extension of no portability at all. Another
+ conversion specifier `%l' is not POSIX conforming, but seems
+ to be generally supported, so it is left untouched.
+
2015-03-20 Mats Erik Andersson <address@hidden>
telnetd: Texinfo documentation.
diff --git a/telnetd/utility.c b/telnetd/utility.c
index 21a231e..e7ffb8e 100644
--- a/telnetd/utility.c
+++ b/telnetd/utility.c
@@ -1671,7 +1671,7 @@ _var_short_name (struct line_expander *exp)
case 'd':
time (&t);
strftime (timebuf, sizeof (timebuf),
- "%l:%M%P on %A, %d %B %Y", localtime (&t));
+ "%l:%M%p on %A, %d %B %Y", localtime (&t));
return xstrdup (timebuf);
case 'h':
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
telnetd/utility.c | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU Inetutils
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_2-56-gf09010f,
Mats Erik Andersson <=