summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2015-01-05 15:17:56 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2015-01-05 15:17:56 -0800
commit724719b1da2f21d77745ff4606f5299a837c6633 (patch)
treee68af21a5645f7c03f474eb3842ac5510414d672
parent7cc90badae553a5ae25c3d93b75b024c73e2c7f4 (diff)
downloadnasm-724719b1da2f21d77745ff4606f5299a837c6633.tar.gz
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>
-rw-r--r--nasm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nasm.c b/nasm.c
index 37b40b00..8557b4db 100644
--- a/nasm.c
+++ b/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(&lt);
+ posix_time = make_posix_time(&lt);
else
posix_time = 0;