diff options
author | wtc%netscape.com <devnull@localhost> | 1998-09-19 23:52:13 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1998-09-19 23:52:13 +0000 |
commit | c2adabf2d8ba6be1aaacfdf91a14bd2d630715b9 (patch) | |
tree | 8f301059dd88887103fe22ee0b9ef7c02f15a16e | |
parent | a486957de2d577db2e3297b5de2a9181bbae80c4 (diff) | |
download | nspr-hg-c2adabf2d8ba6be1aaacfdf91a14bd2d630715b9.tar.gz |
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.
-rw-r--r-- | pr/include/prtime.h | 2 | ||||
-rw-r--r-- | pr/src/misc/prtime.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pr/include/prtime.h b/pr/include/prtime.h index 93c75794..3d91f084 100644 --- a/pr/include/prtime.h +++ b/pr/include/prtime.h @@ -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 diff --git a/pr/src/misc/prtime.c b/pr/src/misc/prtime.c index ce6e1516..59ea80d4 100644 --- a/pr/src/misc/prtime.c +++ b/pr/src/misc/prtime.c @@ -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; |