mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
Change posix_mktime() to make_posix_time()
The posix_ prefix is reserved for POSIX, and even if there never is a posix_mktime() defined it might be confusing for programmers familiar with this convention. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
7cc90badae
commit
724719b1da
6
nasm.c
6
nasm.c
@ -199,7 +199,7 @@ static void nasm_fputs(const char *line, FILE * outfile)
|
||||
}
|
||||
|
||||
/* Convert a struct tm to a POSIX-style time constant */
|
||||
static int64_t posix_mktime(struct tm *tm)
|
||||
static int64_t make_posix_time(struct tm *tm)
|
||||
{
|
||||
int64_t t;
|
||||
int64_t y = tm->tm_year;
|
||||
@ -253,9 +253,9 @@ static void define_macros_early(void)
|
||||
}
|
||||
|
||||
if (gm_p)
|
||||
posix_time = posix_mktime(&gm);
|
||||
posix_time = make_posix_time(&gm);
|
||||
else if (lt_p)
|
||||
posix_time = posix_mktime(<);
|
||||
posix_time = make_posix_time(<);
|
||||
else
|
||||
posix_time = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user