Skip to content

Commit

Permalink
* posix/fnmatch_loop.c (FCT): Remove signed warnings.
Browse files Browse the repository at this point in the history
* posix/wordexp.c (do_parse_glob): Likewise. 
* sysdeps/posix/sigblock.c (__sigblock): Likewise. 
* sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise. 
* elf/dl-open.c (_dl_open): Likewise. 
* elf/dl-close.c (_dl_close): Likewise. 
* elf/dl-load.c (_dl_map_object): Likewise. 
* iconv/iconv_prog.c (process_fd): Likewise.
  • Loading branch information
Andreas Jaeger committed Jan 12, 2001
1 parent 5ef50d0 commit 2e47aff
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions elf/dl-close.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Close a shared object opened by `_dl_open'.
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -182,7 +182,7 @@ _dl_close (void *_map)
if (__builtin_expect (imap->l_global, 0))
{
/* This object is in the global scope list. Remove it. */
int cnt = _dl_main_searchlist->r_nlist;
unsigned int cnt = _dl_main_searchlist->r_nlist;

do
--cnt;
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
if (l && __builtin_expect (l->l_flags_1 & DF_1_NODEFLIB, 0))
{
const char *dirp = system_dirs;
int cnt = 0;
unsigned int cnt = 0;

do
{
Expand Down
4 changes: 2 additions & 2 deletions elf/dl-open.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Load a shared object at runtime, relocate it, and run its initializer.
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -397,7 +397,7 @@ _dl_open (const char *file, int mode, const void *caller)
state if relocation failed, for example. */
if (args.map)
{
int i;
unsigned int i;

/* Increment open counters for all objects since this has
not happened yet. */
Expand Down
4 changes: 2 additions & 2 deletions iconv/iconv_prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ process_fd (iconv_t cd, int fd, FILE *output)

while (actlen < maxlen)
{
size_t n = read (fd, inptr, maxlen - actlen);
ssize_t n = read (fd, inptr, maxlen - actlen);

if (n == 0)
/* No more text to read. */
Expand All @@ -482,7 +482,7 @@ process_fd (iconv_t cd, int fd, FILE *output)
if (actlen == maxlen)
while (1)
{
size_t n;
ssize_t n;

/* Increase the buffer. */
maxlen += 32768;
Expand Down
6 changes: 3 additions & 3 deletions posix/fnmatch_loop.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991-1993, 1996-1999, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1991-1993, 1996-2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -438,7 +438,7 @@ FCT (pattern, string, no_leading_period, flags)
const int32_t *symb_table;
# ifdef WIDE_CHAR_VERSION
char str[c1];
int strcnt;
unsigned int strcnt;
# else
# define str (startp + 1)
# endif
Expand Down Expand Up @@ -643,7 +643,7 @@ FCT (pattern, string, no_leading_period, flags)
const int32_t *symb_table;
# ifdef WIDE_CHAR_VERSION
char str[c1];
int strcnt;
unsigned int strcnt;
# else
# define str (startp + 1)
# endif
Expand Down
4 changes: 2 additions & 2 deletions posix/wordexp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* POSIX.2 wordexp implementation.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Tim Waugh <tim@cyberelk.demon.co.uk>.
Expand Down Expand Up @@ -382,7 +382,7 @@ do_parse_glob (const char *glob_word, char **word, size_t *word_length,
const char *ifs_white)
{
int error;
int match;
unsigned int match;
glob_t globbuf;

error = glob (glob_word, GLOB_NOCHECK, NULL, &globbuf);
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/posix/sigblock.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
/* Copyright (C) 1991, 94, 95, 96, 97, 98, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -24,7 +24,7 @@ int
__sigblock (mask)
int mask;
{
register int sig;
register unsigned int sig;
sigset_t set, oset;

if (__sigemptyset (&set) < 0)
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/posix/sigsetmask.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
/* Copyright (C) 1991,1994,1995,1996,1997,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -23,7 +23,7 @@
int
__sigsetmask (int mask)
{
register int sig;
register unsigned int sig;
sigset_t set, oset;

if (__sigemptyset (&set) < 0)
Expand Down

0 comments on commit 2e47aff

Please sign in to comment.