mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
Make caesar and pom WARNS 6 clean. While there, use prototypes everywhere.
PR: 62456
This commit is contained in:
parent
7d23fba22f
commit
b484917d53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145782
@ -8,6 +8,6 @@ SCRIPTS=rot13.sh
|
||||
MAN= caesar.6
|
||||
MLINKS= caesar.6 rot13.6
|
||||
|
||||
WARNS?= 2
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -80,9 +80,7 @@ double stdf[26] = {
|
||||
void printit(char *);
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int ch, dot, i, nread, winnerdot = 0;
|
||||
char *inbuf;
|
||||
@ -153,8 +151,8 @@ main(argc, argv)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void printit(arg)
|
||||
char *arg;
|
||||
void
|
||||
printit(char *arg)
|
||||
{
|
||||
int ch, rot;
|
||||
|
||||
|
@ -6,6 +6,6 @@ MAN= pom.6
|
||||
DPADD= ${LIBM}
|
||||
LDADD= -lm
|
||||
|
||||
WARNS?= 2
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -78,7 +78,7 @@ static double dtor(double);
|
||||
static double potm(double);
|
||||
|
||||
int
|
||||
main()
|
||||
main(void)
|
||||
{
|
||||
time_t tt;
|
||||
struct tm *GMT;
|
||||
@ -122,8 +122,7 @@ main()
|
||||
* return phase of the moon
|
||||
*/
|
||||
static double
|
||||
potm(days)
|
||||
double days;
|
||||
potm(double days)
|
||||
{
|
||||
double N, Msol, Ec, LambdaSol, l, Mm, Ev, Ac, A3, Mmprime;
|
||||
double A4, lprime, V, ldprime, D, Nm;
|
||||
@ -159,8 +158,7 @@ potm(days)
|
||||
* convert degrees to radians
|
||||
*/
|
||||
static double
|
||||
dtor(deg)
|
||||
double deg;
|
||||
dtor(double deg)
|
||||
{
|
||||
return(deg * PI / 180);
|
||||
}
|
||||
@ -170,8 +168,7 @@ dtor(deg)
|
||||
* adjust value so 0 <= deg <= 360
|
||||
*/
|
||||
static void
|
||||
adj360(deg)
|
||||
double *deg;
|
||||
adj360(double *deg)
|
||||
{
|
||||
for (;;)
|
||||
if (*deg < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user