зеркало из https://github.com/mozilla/pjs.git
Added the 'const' qualifier to the 'fmt' argument for PR_FormatTime.
This patch is contributed by Ben Laurie <ben@algroup.co.uk>. Files changed: prtime.h and prtime.c.
This commit is contained in:
Родитель
74bdf9ccea
Коммит
0d99998373
|
@ -261,7 +261,7 @@ PR_EXTERN(PRStatus) PR_ParseTimeString (
|
|||
#ifndef NO_NSPR_10_SUPPORT
|
||||
|
||||
/* Format a time value into a buffer. Same semantics as strftime() */
|
||||
PR_EXTERN(PRUint32) PR_FormatTime(char *buf, int buflen, char *fmt,
|
||||
PR_EXTERN(PRUint32) PR_FormatTime(char *buf, int buflen, const char *fmt,
|
||||
const PRExplodedTime *tm);
|
||||
|
||||
/* Format a time value into a buffer. Time is always in US English format, regardless
|
||||
|
|
|
@ -1609,7 +1609,7 @@ PR_ParseTimeString(
|
|||
*/
|
||||
|
||||
PR_IMPLEMENT(PRUint32)
|
||||
PR_FormatTime(char *buf, int buflen, char *fmt, const PRExplodedTime *tm)
|
||||
PR_FormatTime(char *buf, int buflen, const char *fmt, const PRExplodedTime *tm)
|
||||
{
|
||||
struct tm a;
|
||||
a.tm_sec = tm->tm_sec;
|
||||
|
|
Загрузка…
Ссылка в новой задаче