shadow/po
Alejandro Colomar 355ad6a9e0 Have a single definition of date_to_str()
PARAMETERS:

According to the C2x charter, I reordered the parameters 'size'
and 'buf' from previously existing date_to_str() definitions.

C2x charter:
> 15. Application Programming Interfaces (APIs) should be
> self-documenting when possible.  In particular, the order of
> parameters in function declarations should be arranged such that
> the size of an array appears before the array.  The purpose is to
> allow Variable-Length Array (VLA) notation to be used.  This not
> only makes the code's purpose clearer to human readers, but also
> makes static analysis easier.  Any new APIs added to the Standard
> should take this into consideration.

I used 'long' for the date parameter, as some uses of the function
need to pass a negative value meaning "never".

FUNCTION BODY:

I didn't check '#ifdef HAVE_STRFTIME', which old definitions did,
since strftime(3) is guaranteed by the C89 standard, and all of
the conversion specifiers that we use are also specified by that
standard, so we don't need any extensions at all.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2021-12-26 18:55:39 +01:00
..
bs.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
ca.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
cs.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
da.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
de.po po/de.po: Update German translations. 2021-07-05 11:49:45 +02:00
dz.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
el.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
es.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
eu.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
fi.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
fr.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
gl.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
he.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
hu.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
id.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
it.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
ja.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
kk.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
km.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
ko.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
LINGUAS * NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to 2009-03-03 20:53:20 +00:00
Makevars
nb.po Fix typo in passwd --help's Norvegian translation 2021-11-14 12:52:37 +01:00
ne.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
nl.po updated Dutch translation 2021-09-13 21:05:45 +02:00
nn.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
pl.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
POTFILES.in Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
pt_BR.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
pt.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
ro.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
ru.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
shadow.pot po: Update pot file. 2021-07-05 11:49:36 +02:00
sk.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
sq.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
stats
sv.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
tl.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
tr.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
uk.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
vi.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
zh_CN.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00
zh_TW.po po: Update translation files from updated template. 2021-07-05 11:49:45 +02:00