]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd-functions.bash,cosmetic) unify the style to define functions
authorMasatake YAMATO <yamato@redhat.com>
Sat, 16 Mar 2024 13:05:48 +0000 (22:05 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 5 Apr 2024 09:27:02 +0000 (18:27 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/lsfd-functions.bash

index 36c0583c5e312e50df31945c15712e7b553136e4..d7eab146a70dac63314ac748d361c3361c16e167 100644 (file)
@@ -58,7 +58,7 @@ function lsfd_compare_dev {
     fi
 }
 
-lsfd_strip_type_stream()
+function lsfd_strip_type_stream
 {
     # lsfd changes the output of NAME column for a unix stream socket
     # whether the kernel reports it is a "UNIX-STREAM" socket or a
@@ -67,7 +67,7 @@ lsfd_strip_type_stream()
     sed -e 's/ type=stream//'
 }
 
-lsfd_make_state_connected()
+function lsfd_make_state_connected
 {
     # Newer kernels report the states of unix dgram sockets created by
     # sockerpair(2) are "connected" via /proc/net/unix though Older