Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 08:42:19 +0000 (UTC)
From:      Philippe Charnier <charnier@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230530 - head/bin/sh
Message-ID:  <201201250842.q0P8gJaD014915@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: charnier
Date: Wed Jan 25 08:42:19 2012
New Revision: 230530
URL: http://svn.freebsd.org/changeset/base/230530

Log:
  Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.

Modified:
  head/bin/sh/arith_yacc.c
  head/bin/sh/arith_yylex.c
  head/bin/sh/exec.c
  head/bin/sh/histedit.c
  head/bin/sh/jobs.c

Modified: head/bin/sh/arith_yacc.c
==============================================================================
--- head/bin/sh/arith_yacc.c	Wed Jan 25 07:45:15 2012	(r230529)
+++ head/bin/sh/arith_yacc.c	Wed Jan 25 08:42:19 2012	(r230530)
@@ -84,6 +84,8 @@ static const char prec[ARITH_BINOP_MAX -
 
 #define ARITH_MAX_PREC 8
 
+int letcmd(int, char **);
+
 static __dead2 void yyerror(const char *s)
 {
 	error("arithmetic expression: %s: \"%s\"", s, arith_startbuf);
@@ -377,4 +379,3 @@ letcmd(int argc, char **argv)
 	out1fmt(ARITH_FORMAT_STR "\n", i);
 	return !i;
 }
-

Modified: head/bin/sh/arith_yylex.c
==============================================================================
--- head/bin/sh/arith_yylex.c	Wed Jan 25 07:45:15 2012	(r230529)
+++ head/bin/sh/arith_yylex.c	Wed Jan 25 08:42:19 2012	(r230530)
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
 extern const char *arith_buf;
 
 int
-yylex()
+yylex(void)
 {
 	int value;
 	const char *buf = arith_buf;

Modified: head/bin/sh/exec.c
==============================================================================
--- head/bin/sh/exec.c	Wed Jan 25 07:45:15 2012	(r230529)
+++ head/bin/sh/exec.c	Wed Jan 25 08:42:19 2012	(r230530)
@@ -493,7 +493,7 @@ hashcd(void)
  */
 
 void
-changepath(const char *newval)
+changepath(const char *newval __unused)
 {
 	clearcmdentry();
 }

Modified: head/bin/sh/histedit.c
==============================================================================
--- head/bin/sh/histedit.c	Wed Jan 25 07:45:15 2012	(r230529)
+++ head/bin/sh/histedit.c	Wed Jan 25 08:42:19 2012	(r230530)
@@ -160,8 +160,7 @@ bad:
 
 
 void
-sethistsize(hs)
-	const char *hs;
+sethistsize(const char *hs)
 {
 	int histsize;
 	HistEvent he;

Modified: head/bin/sh/jobs.c
==============================================================================
--- head/bin/sh/jobs.c	Wed Jan 25 07:45:15 2012	(r230529)
+++ head/bin/sh/jobs.c	Wed Jan 25 08:42:19 2012	(r230530)
@@ -92,6 +92,7 @@ static void restartjob(struct job *);
 #endif
 static void freejob(struct job *);
 static struct job *getjob(char *);
+pid_t getjobpgrp(char *);
 static pid_t dowait(int, struct job *);
 static pid_t waitproc(int, int *);
 static void checkzombies(void);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201250842.q0P8gJaD014915>