Commit Graph

68 Commits

Author SHA1 Message Date
mrg f8570f8a97 fix simple mis-matched function prototype and definitions.
most of these are like, eg

   void foo(int[2]);

with either of these

   void foo(int*) { ... }
   void foo(int[]) { ... }

in some cases (such as stat or utimes* calls found in our header files),
we now match standard definition from opengroup.

found by GCC 12.
2023-08-01 07:04:14 +00:00
lukem 230c41e44c adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}
Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of
the older style more complex expressions.
2023-06-03 21:30:20 +00:00
christos 547a1b6c1d don't opencode kauth_cred_get() 2021-09-21 14:49:01 +00:00
christos d9f886e2fb rename glue.c to sodium_module.c 2021-08-21 09:08:55 +00:00
christos ce29f9c339 renaname glue.c to sodium_module.c and remove libsodium_errno which is unused. 2021-08-21 09:08:08 +00:00
christos 1f868fb0a1 Add module glue 2021-08-17 17:30:01 +00:00
mrg 4a4197aaa8 use correct enum types for various functions. 2021-04-13 03:27:13 +00:00
christos a5a15771d1 interupt -> interrupt 2020-12-16 19:49:04 +00:00
rin a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
riastradh 062505bfdf Tidy up libsodium makefile and config fragments. 2020-08-26 15:49:56 +00:00
riastradh 465b1b1b98 Disable libsodium HAVE_TI_MODE for now.
This may reduce performance by not taking advantage of 64x64->128
multiplications on some platforms, but let's worry about that later
and fix the build on the other platforms instead.
2020-08-21 06:37:30 +00:00
riastradh 588821d8ae Split flags onto separate lines, sorted, to make diffs easier. 2020-08-21 06:30:46 +00:00
riastradh 9bd7cf68e1 Disable -Wshadow for libsodium.
Evidently ed25519_ref10.c has a global and a local both named `d'.
2020-08-21 06:27:41 +00:00
riastradh ae210b0e13 Use cprng_strong, not cprng_fast, for ephemeral key. 2020-08-20 21:30:56 +00:00
riastradh 02ec6e2340 Split ge25519_scalarmult up in order to reduce stack usage. 2020-08-20 21:20:47 +00:00
riastradh 569512438e Reuse temporaries in ge25519_scalarmult to reduce stack usage. 2020-08-20 21:20:37 +00:00
riastradh a5b568d2b4 [ozaki-r] libsodium glue 2020-08-20 21:20:16 +00:00
riastradh f447f37a0a libsodium 1.0.16 2020-08-20 21:17:00 +00:00
mrg 90bf43e918 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-30 00:06:02 +00:00
kamil e1b2633dfc Improve fallthrough statement wording
Fixes build with kUBSan on NetBSD/i386.
2019-02-23 11:24:53 +00:00
mrg dc91d75898 apply -Wno-error=implicit-fallthrough to ar5212_xmit.c and ar5416_xmit.c. 2019-02-04 08:36:43 +00:00
christos 56e7e9d8c8 PR/51540: Henning Petersen: replace , with ; 2016-10-09 14:35:33 +00:00
jklos 2f385a84d2 One too many parenthesis removed. 2015-11-24 08:48:25 +00:00
joerg 6d8db05630 Replace left shifts of negative values with appropiate unsigned values. 2015-11-23 23:46:33 +00:00
uebayasi b349dc5c14 Revert troublesome ath_hal config definitions back to the original.
This means that, under the new config(1) modular build, if the option
ATHHAL_AR5210, that extends the ath driver to support AR5210, is selected,
the relevant 10 ar5210_*.c files end up being embedded into the "netbsd.ko"
module, which is pretty much opposite of modularity.
2014-10-14 08:17:27 +00:00
uebayasi 70d8786eec Sanitize athhal definitions. Depend on ath. 2014-10-10 17:09:18 +00:00
wiz 87561671c1 defintion -> definition 2014-08-03 19:14:24 +00:00
joerg 636b9f2c58 abs on unsigned values is a nop. 2014-02-27 01:31:09 +00:00
martin 97f5cd3b5b Remove unused variable 2013-09-12 12:10:11 +00:00
martin 121875800b Remove unsued variable 2013-09-12 12:08:49 +00:00
martin 2861b6deff Remove unused variable 2013-09-12 12:04:37 +00:00
martin 1b1163f56b Get rid of unused variables 2013-09-12 12:03:33 +00:00
martin 46208470f2 Remove unused variable 2013-09-12 11:44:08 +00:00
martin 84e3fc8358 Fix wrong for loop limit 2013-09-12 11:38:23 +00:00
martin fda716a94d Remove unused maxPower_t4 variable. 2013-09-12 11:26:53 +00:00
joerg 9547cd8b38 Fix header guards. 2013-06-25 15:08:43 +00:00
msaitoh 5d8b710d44 Fix off by one read error. 2012-12-11 09:17:31 +00:00
nakayama 155d42ae0b Fix ATHHAL_DEBUG by syncing HALDEBUG() with Atheros HAL code. 2012-04-11 13:48:11 +00:00
bouyer 867f16169f Revert previous; needs more work 2012-03-15 18:52:02 +00:00
bouyer 5ade347d8f Use the right marcro for loop bound, avoids read past array end. Found by
gcc -03
2012-03-15 18:49:49 +00:00
wiz bc52f506fb Consistently use ar5416SetPowerMode. From Henning Petersen in PR 45999. 2012-02-12 13:55:27 +00:00
wiz 87b4d73fea Use correct return value. From clang via Henning Petersen in PR 45995. 2012-02-12 13:48:45 +00:00
wiz 498ae6154b Use correct return value. From clang via Henning Petersen in PR 45996. 2012-02-12 13:47:19 +00:00
jmcneill cb9ec697cf SVN r220966 from FreeBSD:
Fix a corner-case of interrupt handling which resulted in potentially
spurious (and fatal) interrupt errors.
2011-11-28 00:30:17 +00:00
jmcneill 6edd5ebb16 Fix AR_SREV_MERLIN_20 and AR_SREV_MERLIN_20_OR_LATER macros to match
rev 2.1 as well as 2.0, from FreeBSD. Fixes 5GHz mode on my 9280.
2011-08-01 10:21:32 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
joerg 986345740c Define a few macros as unsigned to avoid UB when later shifting them
in ways that involve integer overflow.
2011-05-30 13:58:23 +00:00
joerg 45132449f2 Silence warnings about unused return value for a dead hardware read. 2011-05-30 13:57:21 +00:00
cegger f2fbc0de6d Get improvements from FreeBSD-current (January 2011).
Successfully tested with WEP, WPA and WPA2 on AR9285.
Reviewed by jmcneill@
2011-03-07 11:25:41 +00:00
cegger 6f6097d0cf add defflag for AR9285.
Spotted by jmcneill@
2011-03-05 14:42:11 +00:00