summaryrefslogtreecommitdiff
path: root/source4/lib/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace.c')
-rw-r--r--source4/lib/replace.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/lib/replace.c b/source4/lib/replace.c
index c186d307e6..de32d377d5 100644
--- a/source4/lib/replace.c
+++ b/source4/lib/replace.c
@@ -437,7 +437,6 @@ char *rep_inet_ntoa(struct in_addr ip)
{
struct tm tm2, tm3;
time_t t;
- static int zone = -1;
tm2 = *tm;
@@ -446,10 +445,7 @@ char *rep_inet_ntoa(struct in_addr ip)
tm2 = *tm;
tm2.tm_isdst = tm3.tm_isdst;
t = mktime(&tm2);
- if (zone == -1) {
- zone = get_time_zone(t);
- }
- t -= zone;
+ t -= get_time_zone(t);
return t;
}
@@ -472,8 +468,3 @@ char *rep_inet_ntoa(struct in_addr ip)
return ret;
}
#endif
-
-const char *global_myname(void)
-{
- return lp_netbios_name();
-}