Skip to content

Commit 6f4b776

Browse files
mschulz-at-hilscherrurban
authored andcommitted
Remove whitespaces from end of line.
Signed-off-by: Matthias Schulz <mschulz@hilscher.com>
1 parent 98cc567 commit 6f4b776

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ References
301301

302302
[^2]: Rationale for TR 24731 Extensions to the C Library Part I:
303303
Bounds-checking interfaces, ISO/IEC JTC1 SC22 WG14 N1225.
304-
304+
305305
[^3]: The Open Group Base Specifications Issue 7
306306
http://pubs.opengroup.org/onlinepubs/9699919799/functions/contents.html
307307

build-aux/smoke.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ if [ -z "`git status --porcelain`" ]; then
367367
../configure && $make check-log || exit
368368
cd ..
369369
rm -rf .build
370-
370+
371371
echo make distcheck
372372
build-aux/autogen.sh && \
373373
./configure && $make distcheck
@@ -379,6 +379,6 @@ rm .slkm.ko.cmd .testslkm.ko.cmd CaseFolding.txt test-upr.pl \
379379
tmpfopen tmpvwscanf tmpwscanf
380380
rm -rf .tmp_versions/
381381

382-
autoreconf
382+
autoreconf
383383
./configure --enable-unsafe --enable-debug && \
384384
$make -s -j4 check-log || exit

configure.ac

+7-7
Original file line numberDiff line numberDiff line change
@@ -809,10 +809,10 @@ AC_CHECK_TYPE([errno_t],
809809
[[#include <errno.h>]])
810810
AC_SUBST(FALLBACK_ERRNO_T)
811811
AC_TYPE_MBSTATE_T
812-
AC_CHECK_MEMBER(struct tm.tm_gmtoff,
813-
[AC_DEFINE(HAVE_TM_GMTOFF, 1,
814-
[Define if struct tm has the tm_gmtoff member.])],
815-
,
812+
AC_CHECK_MEMBER(struct tm.tm_gmtoff,
813+
[AC_DEFINE(HAVE_TM_GMTOFF, 1,
814+
[Define if struct tm has the tm_gmtoff member.])],
815+
,
816816
[#include <time.h>])
817817
AX_COMPILE_CHECK_SIZEOF(time_t, [#include <time.h>])
818818
AC_CHECK_TYPE([wchar_t],[],[],[[#include <wchar.h>]])
@@ -948,7 +948,7 @@ AC_CHECK_FUNCS([ memset strcmp strcasecmp strcasestr strcspn strpbrk strspn \
948948
timingsafe_bcmp explicit_bzero explicit_memset \
949949
asctime_r ctime_r gmtime_r localtime_r memccpy stpcpy stpncpy strerror])
950950

951-
if test "x$enable_wchar" = "xtrue" ; then
951+
if test "x$enable_wchar" = "xtrue" ; then
952952
AC_CHECK_FUNCS([ wmemchr wmemcmp wcscmp wcsstr \
953953
vswprintf vsnwprintf vswscanf mbsrtowcs mbstowcs iswdigit iswspace \
954954
towlower towupper towctrans ])
@@ -977,7 +977,7 @@ AC_CHECK_FUNCS(
977977
fopen_s freopen_s gets_s bsearch_s qsort_s gmtime_s localtime_s \
978978
asctime_s ctime_s getenv_s ])
979979

980-
if test "x$enable_wchar" = "xtrue" ; then
980+
if test "x$enable_wchar" = "xtrue" ; then
981981
AC_CHECK_FUNCS(
982982
[ mbsrtowcs_s mbstowcs_s wcsrtombs_s wcstombs_s \
983983
wcrtomb_s wctomb_s wcsnlen_s wcscpy_s wcsncpy_s wcscat_s wcsncat_s \
@@ -991,7 +991,7 @@ fi
991991
dnl but delete it, because we override it case by case
992992
$GREP -v '__STDC_WANT_LIB_EXT1__' confdefs.h > confdefs.h.tmp
993993
mv confdefs.h.tmp confdefs.h
994-
994+
995995
AM_CONDITIONAL([HAVE_WCSSTR], [test "x$ac_cv_func_wcsstr" = "xyes"])
996996
AM_CONDITIONAL([HAVE_MBSTOWCS], [test "x$ac_cv_func_mbstowcs" = "xyes"])
997997
AM_CONDITIONAL([HAVE_VSNWPRINTF_S], [test "x$ac_cv_func_vsnwprintf_s" = "xyes"])

doc/libc-overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Overview of various libc's regarding the secure C11 extensions
22

3-
C11 defined the optional secure extensions to be demanded by
3+
C11 defined the optional secure extensions to be demanded by
44
`__STDC_WANT_LIB_EXT1__`.
55

66
From the following tested libc implementations:
@@ -196,7 +196,7 @@ Available at https://code.google.com/archive/p/slibc/
196196
calling an invalid `strlen()` on NULL.
197197

198198
* quirky declaration of various standards, which conflict with each other.
199-
199+
200200
glibc needs the correct standard to include some extensions
201201
when we declare the standard by ourselves.
202202
e.g. clang-4.0 -std=c99 misses several reentrant versions.

scripts/check_for_unsafe_apis

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ my %gFuncConvertMap = (
181181
"fopen" => "fopen_s",
182182
"freopen" => "freopen_s",
183183
"gets" => "gets_s", # not fgets
184-
184+
185185
# C11 std APIs (OS)
186186
"asctime" => "asctime_s",
187187
"ctime" => "ctime_s",
@@ -191,7 +191,7 @@ my %gFuncConvertMap = (
191191
"tmpnam" => "mkstemp", #"tmpnam_s",
192192
"tempnam" => "mkstemp", #"tmpnam_s",
193193
"tmpfile" => "tmpfile_s",
194-
194+
195195
# C11 std APIs (Misc)
196196
"bsearch" => "bsearch_s",
197197
"qsort" => "qsort_s",
@@ -200,7 +200,7 @@ my %gFuncConvertMap = (
200200
# - GNU extensions
201201
"memcmp" => "memcmp_s",
202202
"wmemcmp" => "wmemcmp_s",
203-
203+
204204
# - Posix extensions
205205
"strnlen" => "strnlen_s",
206206
"strcasecmp" => "strcasecmp_s",
@@ -236,7 +236,7 @@ my %gFuncConvertMap = (
236236
"strtolowercase" => "strtolowercase_s",
237237
"strtouppercase" => "strtouppercase_s",
238238
"strzero" => "strzero_s",
239-
239+
240240
# - BSD extensions
241241
#"strnstr" => "strnlen_s", # broken in newlib
242242
"strlcat" => "strcat_s",

src/extwchar/hangul.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* This file is built by cperl regen/regcharclass-safec.pl.
33
* cp_high means only codepoints > 0xff
44
*/

src/io/printf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ EXPORT int printf_s(const char *restrict fmt, ...) {
8686
return -(EINVAL);
8787
}
8888
}
89-
89+
9090
va_start(va, fmt);
9191
ret = safec_vsnprintf_s(safec_out_char, "printf_s", buffer, (rsize_t)-1, fmt, va);
9292
va_end(va);

src/str/sprintf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ EXPORT int sprintf_s(char *restrict dest, rsize_t dmax,
106106
ret = _vsnprintf_s_chk(dest, dmax, destbos, fmt, va);
107107
#else
108108
ret = vsnprintf_s(dest, dmax, fmt, va);
109-
#endif
109+
#endif
110110
va_end(va);
111111
return ret;
112112
}

src/str/vsnprintf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ int safec_vsnprintf_s(out_fct_type out, const char* funcname,
955955
char msg[80];
956956
snprintf(msg, sizeof msg, "%s: wcstombs_s for %%ls arg failed", funcname);
957957
invoke_safe_str_constraint_handler(msg, buffer, RCNEGATE(err));
958-
return err;
958+
return err;
959959
}
960960
#else
961961
{

tests/test_vfprintf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ int test_vfprintf_s(void) {
188188
perror("fopen r");
189189
unlink(TMP);
190190
return errs + 1;
191-
}
191+
}
192192
/* print to not-writable stream */
193193
errno = 0;
194194
rc = vtfprintf_s(out, "%s", str1);

0 commit comments

Comments
 (0)