Skip to content

Commit 9b26d1c

Browse files
authored
Merge pull request #2 from a1346054/fixes
Tiny cleanup
2 parents 905fa62 + f644312 commit 9b26d1c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/full-check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77

88
runs-on: ubuntu-latest
9-
9+
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: install_dependencies
@@ -18,7 +18,7 @@ jobs:
1818
make
1919
sudo make install
2020
sudo make uninstall
21-
make distclean
21+
make distclean
2222
- name: second_build
2323
run: |
2424
./autogen.sh
@@ -29,4 +29,3 @@ jobs:
2929
run: |
3030
rdate 2>&1 | grep Usage
3131
rdate -pn4v ntp.on.br
32-

autogen.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
# Use clean option
34-
if [ "$1" = "clean" -a ! -e Makefile ]
34+
if [ "$1" = "clean" ] && [ ! -e Makefile ]
3535
then
3636
echo "Vanishing the code"
3737
rm -rf aclocal.m4 autom4te.cache/ compile config.* configure depcomp \
@@ -40,7 +40,7 @@ then
4040
fi
4141

4242
# Do not use clean option
43-
if [ "$1" = "clean" -a -e Makefile ]
43+
if [ "$1" = "clean" ] && [ -e Makefile ]
4444
then
4545
echo "I can not clean. Use '$ make distclean'."
4646
exit 0

src/ntp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
#define NTP_MODE_CLIENT 3 /* NTP client mode */
7474
#define NTP_MODE_SERVER 4 /* NTP server mode */
7575
#define NTP_VERSION 4 /* The current version */
76-
#define NTP_VERSION_MIN 1 /* The minum valid version */
76+
#define NTP_VERSION_MIN 1 /* The minimum valid version */
7777
#define NTP_VERSION_MAX 4 /* The maximum valid version */
7878
#define NTP_STRATUM_MAX 14 /* The maximum valid stratum */
7979
#define NTP_INSANITY 3600.0 /* Errors beyond this are hopeless */

0 commit comments

Comments
 (0)