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 <[email protected]>
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  <[email protected]>
+
+       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  <[email protected]>
 
        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 

_______________________________________________
Commit-inetutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/commit-inetutils

Reply via email to