From a90aa575105b5a1f33c99e7feab8d1921aee99d4 Mon Sep 17 00:00:00 2001 From: Colin Leroy-Mira Date: Thu, 7 Sep 2023 16:48:56 +0200 Subject: [PATCH] Address Oliver's comments --- doc/funcref.sgml | 8 ++++---- include/arpa/inet.h | 30 ++++++++++++++++++++++++++++++ libsrc/common/ntohl.s | 2 -- libsrc/common/ntohs.s | 2 -- 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/doc/funcref.sgml b/doc/funcref.sgml index ae25851e8..5fa1720e4 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -4403,7 +4403,7 @@ to undefined behaviour. / +/ / +/ / +/ / +/ */ +/* */ +/* */ +/* This software is provided 'as-is', without any expressed or implied */ +/* warranty. In no event will the authors be held liable for any damages */ +/* arising from the use of this software. */ +/* */ +/* Permission is granted to anyone to use this software for any purpose, */ +/* including commercial applications, and to alter it and redistribute it */ +/* freely, subject to the following restrictions: */ +/* */ +/* 1. The origin of this software must not be misrepresented; you must not */ +/* claim that you wrote the original software. If you use this software */ +/* in a product, an acknowledgment in the product documentation would be */ +/* appreciated but is not required. */ +/* 2. Altered source versions must be plainly marked as such, and must not */ +/* be misrepresented as being the original software. */ +/* 3. This notice may not be removed or altered from any source */ +/* distribution. */ +/* */ +/*****************************************************************************/ + #ifndef _ARPA_INET_H #define _ARPA_INET_H diff --git a/libsrc/common/ntohl.s b/libsrc/common/ntohl.s index 6bf959b95..77adba253 100644 --- a/libsrc/common/ntohl.s +++ b/libsrc/common/ntohl.s @@ -9,13 +9,11 @@ .importzp tmp1, tmp2, sreg _htonl := _ntohl -.code _ntohl: ; The parts of our 32 bit word ; are in sreg+1, sreg, X, A. - ; Save A and X stx tmp1 sta tmp2 diff --git a/libsrc/common/ntohs.s b/libsrc/common/ntohs.s index e1914770e..042ddb005 100644 --- a/libsrc/common/ntohs.s +++ b/libsrc/common/ntohs.s @@ -9,8 +9,6 @@ _htons := _ntohs -.code - _ntohs: sta tmp1 txa