diff options
author | Andreas Jaeger <aj@suse.de> | 2000-12-31 16:56:02 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-12-31 16:56:02 +0000 |
commit | 4e6bc1f61caff64d2f667dbb5c2d031f75d340be (patch) | |
tree | 1d12ae6d1c1a301ee64fbf9f45cdc99160013d40 /iconvdata | |
parent | fa39f7f7bedcbb61c3f6b9f1bbe3d1623ca6a8e9 (diff) | |
download | glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.zip glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.tar.gz glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.tar.bz2 |
(main): Use return instead of exit to avoid warning.
2000-12-31 Andreas Jaeger <aj@suse.de>
* tst-fmon.c (main): Use return instead of exit to avoid warning.
Diffstat (limited to 'iconvdata')
-rw-r--r-- | iconvdata/tst-table-to.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/iconvdata/tst-table-to.c b/iconvdata/tst-table-to.c index f154116..c763c84 100644 --- a/iconvdata/tst-table-to.c +++ b/iconvdata/tst-table-to.c @@ -36,7 +36,7 @@ main (int argc, char *argv[]) if (argc != 2) { fprintf (stderr, "Usage: tst-table-to charset\n"); - exit (1); + return 1; } charset = argv[1]; @@ -44,7 +44,7 @@ main (int argc, char *argv[]) if (cd == (iconv_t)(-1)) { perror ("iconv_open"); - exit (1); + return 1; } { @@ -69,7 +69,7 @@ main (int argc, char *argv[]) fprintf (stderr, "0x%02X: iconv error: ", i); errno = saved_errno; perror (""); - exit (1); + return 1; } } else if (result == 0) /* ignore conversions with transliteration */ @@ -80,7 +80,7 @@ main (int argc, char *argv[]) fprintf (stderr, "0x%02X: inbytes = %ld, outbytes = %ld\n", i, (long) (sizeof (unsigned short) - inbytesleft), (long) (sizeof (buf) - outbytesleft)); - exit (1); + return 1; } jmax = sizeof (buf) - outbytesleft; printf ("0x"); @@ -94,14 +94,14 @@ main (int argc, char *argv[]) if (iconv_close (cd) < 0) { perror ("iconv_close"); - exit (1); + return 1; } if (ferror (stdin) || fflush (stdout) || ferror (stdout)) { fprintf (stderr, "I/O error\n"); - exit (1); + return 1; } - exit (0); + return 0; } |