1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix a few compiler nits.

Submitted by:	Bill Fumerola <billf@jade.chc-chimes.com>
This commit is contained in:
Justin T. Gibbs 1999-08-16 22:42:33 +00:00
parent da56bbef22
commit 95a5efc2c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49931
2 changed files with 14 additions and 8 deletions
sys/dev/aic7xxx

View File

@ -25,11 +25,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: aicasm.c,v 1.20 1998/09/15 07:24:17 gibbs Exp $
* $Id: aicasm.c,v 1.21 1999/03/23 07:24:29 gibbs Exp $
*/
#include <sys/types.h>
#include <sys/mman.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -54,7 +55,7 @@ static void usage(void);
static void back_patch(void);
static void output_code(FILE *ofile);
static void output_listing(FILE *listfile, char *ifilename);
static int dump_scope(scope_t *scope);
static void dump_scope(scope_t *scope);
static void emit_patch(scope_t *scope, int patch);
static int check_patch(patch_t **start_patch, int start_instr,
int *skip_addr, int *func_vals);
@ -361,11 +362,10 @@ struct patch {
fprintf(stderr, "%s: %d instructions used\n", appname, instrcount);
}
static int
static void
dump_scope(scope_t *scope)
{
scope_t *cur_scope;
int patches_emitted = 0;
/*
* Emit the first patch for this scope
@ -710,6 +710,9 @@ process_scope(scope_t *scope)
skip_instr_count += cur_scope->end_addr
- cur_scope->begin_addr;
break;
case SCOPE_ROOT:
stop("Unexpected scope type encountered", EX_SOFTWARE);
/* NOTREACHED */
}
cur_scope = TAILQ_PREV(cur_scope, scope_tailq, scope_links);

View File

@ -25,11 +25,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: aicasm.c,v 1.20 1998/09/15 07:24:17 gibbs Exp $
* $Id: aicasm.c,v 1.21 1999/03/23 07:24:29 gibbs Exp $
*/
#include <sys/types.h>
#include <sys/mman.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -54,7 +55,7 @@ static void usage(void);
static void back_patch(void);
static void output_code(FILE *ofile);
static void output_listing(FILE *listfile, char *ifilename);
static int dump_scope(scope_t *scope);
static void dump_scope(scope_t *scope);
static void emit_patch(scope_t *scope, int patch);
static int check_patch(patch_t **start_patch, int start_instr,
int *skip_addr, int *func_vals);
@ -361,11 +362,10 @@ struct patch {
fprintf(stderr, "%s: %d instructions used\n", appname, instrcount);
}
static int
static void
dump_scope(scope_t *scope)
{
scope_t *cur_scope;
int patches_emitted = 0;
/*
* Emit the first patch for this scope
@ -710,6 +710,9 @@ process_scope(scope_t *scope)
skip_instr_count += cur_scope->end_addr
- cur_scope->begin_addr;
break;
case SCOPE_ROOT:
stop("Unexpected scope type encountered", EX_SOFTWARE);
/* NOTREACHED */
}
cur_scope = TAILQ_PREV(cur_scope, scope_tailq, scope_links);