]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused srv_put_dos_date2()
authorVolker Lendecke <vl@samba.org>
Sun, 26 Nov 2023 15:20:44 +0000 (16:20 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 19 Dec 2023 16:05:36 +0000 (16:05 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/include/proto.h
source3/lib/time.c

index 3e3a3c2436a6d8a179c7245ba495007a22e88099..f8f23efecadfba056f2250e5bb363dfe50f87cad 100644 (file)
@@ -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);
index 6f26ae319cd0fcdbd2416aa69d18dd0a9425bec2..420b5f700d9d2c8ecfd6656723d120e8e2b8fd0f 100644 (file)
@@ -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)