From 3046b8b502f41c00747c48f1ed7ce87dc92fe8fb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 26 Nov 2023 16:20:44 +0100 Subject: [PATCH] smbd: Remove unused srv_put_dos_date2() Signed-off-by: Volker Lendecke Reviewed-by: Guenther Deschner --- source3/include/proto.h | 1 - source3/lib/time.c | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 3e3a3c2436a..f8f23efecad 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -238,7 +238,6 @@ int set_server_zone_offset(time_t t); char *timeval_string(TALLOC_CTX *ctx, const struct timeval *tp, bool hires); char *current_timestring(TALLOC_CTX *ctx, bool hires); void srv_put_dos_date(char *buf,int offset,time_t unixdate); -void srv_put_dos_date2(char *buf,int offset, time_t unixdate); void srv_put_dos_date2_ts(char *buf, int offset, struct timespec unix_ts); void srv_put_dos_date3(char *buf,int offset,time_t unixdate); void round_timespec(enum timestamp_set_resolution res, struct timespec *ts); diff --git a/source3/lib/time.c b/source3/lib/time.c index 6f26ae319cd..420b5f700d9 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -129,15 +129,10 @@ void srv_put_dos_date(char *buf,int offset,time_t unixdate) push_dos_date((uint8_t *)buf, offset, unixdate, server_zone_offset); } -void srv_put_dos_date2(char *buf,int offset, time_t unixdate) -{ - push_dos_date2((uint8_t *)buf, offset, unixdate, server_zone_offset); -} - void srv_put_dos_date2_ts(char *buf, int offset, struct timespec unix_ts) { time_t unixdate = convert_timespec_to_time_t(unix_ts); - srv_put_dos_date2(buf, offset, unixdate); + push_dos_date2((uint8_t *)buf, offset, unixdate, server_zone_offset); } void srv_put_dos_date3(char *buf,int offset,time_t unixdate) -- 2.11.4.GIT