summaryrefslogtreecommitdiffstats
path: root/usr.bin/newkey/generic.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r305077:dim2016-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squelch clang 3.9.0 warnings about BASE (which is 32768) being converted to -32768 when it is used as an argument to mp_itom(), in both libtelnet and newkey. This code has been wrong since r26238 (!), so after almost 20 years it is rather useless to try to correct it. MFC r305086: Fix warnings in telnet about invalid constant conversions, e.g.: contrib/telnet/telnet/commands.c:2914:13: error: implicit conversion from 'int' to 'char' changes value from 137 to -119 [-Werror,-Wconstant-conversion] *lsrp++ = IPOPT_SSRR; ~ ^~~~~~~~~~ /usr/include/netinet/ip.h:152:21: note: expanded from macro 'IPOPT_SSRR' #define IPOPT_SSRR 137 /* strict source route */ ^~~ contrib/telnet/telnet/commands.c:2916:13: error: implicit conversion from 'int' to 'char' changes value from 131 to -125 [-Werror,-Wconstant-conversion] *lsrp++ = IPOPT_LSRR; ~ ^~~~~~~~~~ /usr/include/netinet/ip.h:148:21: note: expanded from macro 'IPOPT_LSRR' #define IPOPT_LSRR 131 /* loose source route */ ^~~ Use unsigned char buffers instead.
* Rename all symbols in libmp(3) to mp_*, just like Solaris.ed2009-02-261-20/+20
| | | | | | | | | | | | The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky
* ANSIfy, VCS inclusions and some very minor style.markm2002-04-281-13/+9
|
* remove __Pimp2002-03-221-2/+2
|
* WARNS=2 fixup.markm2001-12-021-8/+13
| | | | Turn on YP (NIS) while I'm about it.
* Switch from using rand() or random() to a stronger, more appropriate PRNGkris2001-03-051-10/+1
| | | | | | (random() or arc4random()) Reviewed by: bde
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add usage(), use err(3).charnier1997-07-291-0/+5
| | | | Rewrote man page in mdoc format.
* This commit was generated by cvs2svn to compensate for changes in r26238,wpaul1997-05-281-0/+135
which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud