sed/utils.c: Remove declaration of unused local, "fd".

2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/utils.c (panic): Remove declaration of unused local, "fd".
This commit is contained in:
Jim Meyering authored and Paolo Bonzini committed 2008-01-16 14:52:54 +01:00
1 parent fb871b6b56
commit 0dd01dfb93
2 files changed
+5 -2

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
2008-01-16 Jim Meyering <meyering@redhat.com>
* sed/utils.c (panic): Remove declaration of unused local, "fd".
2008-01-16 Jim Meyering <meyering@redhat.com>
* sed/execute.c (open_next_file, get_backup_file_name): Avoid
+1 -2
View File
@@ -1,5 +1,5 @@
/* Functions from hack's utils library.
Copyright (C) 1989, 1990, 1991, 1998, 1999, 2003
Copyright (C) 1989, 1990, 1991, 1998, 1999, 2003, 2008
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -96,7 +96,6 @@ panic(const char *str, ...)
{
if (open_files->temp)
{
int fd = fileno (open_files->fp);
fclose (open_files->fp);
errno = 0;
unlink (open_files->name);