]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - time/alt_digit.c
Fix mktime localtime offset confusion
[thirdparty/glibc.git] / time / alt_digit.c
index bd13abdd9c11a87d3e44f90b76821d4d90826945..3b78384ddf083a6403fad3ed16360c9d72ccfa08 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper functions used by strftime/strptime to handle alternate digits.
-   Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   Copyright (C) 1995-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include "../locale/localeinfo.h"
-#include <bits/libc-lock.h>
+#include <libc-lock.h>
 #include <stdlib.h>
 #include <wchar.h>
 #include <string.h>
@@ -69,7 +69,6 @@ _nl_init_alt_digit (struct __locale_data *current)
 }
 
 const char *
-internal_function
 _nl_get_alt_digit (unsigned int number, struct __locale_data *current)
 {
   const char *result;
@@ -95,7 +94,6 @@ _nl_get_alt_digit (unsigned int number, struct __locale_data *current)
 
 
 const wchar_t *
-internal_function
 _nl_get_walt_digit (unsigned int number, struct __locale_data *current)
 {
   const wchar_t *result = NULL;
@@ -132,7 +130,7 @@ _nl_get_walt_digit (unsigned int number, struct __locale_data *current)
                data->walt_digits[cnt] = ptr;
 
                /* Skip digit format. */
-               ptr = wcschr (ptr, L'\0') + 1;
+               ptr = __wcschr (ptr, L'\0') + 1;
              }
        }
     }
@@ -148,7 +146,6 @@ _nl_get_walt_digit (unsigned int number, struct __locale_data *current)
 
 
 int
-internal_function
 _nl_parse_alt_digit (const char **strp, struct __locale_data *current)
 {
   const char *str = *strp;