[PATCH 3/4] Fix compiler warnings of unused variables in loader.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Karsten Hopp <karsten@xxxxxxxxxx>

Removed unused variables in loader/loader.c and loader/shutdown.c
---
 loader/loader.c   |    2 +-
 loader/shutdown.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 17cb918..537b666 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1775,7 +1775,7 @@ static void add_to_path_env(const char *env, const char *val)
 }
 
 int main(int argc, char ** argv) {
-    int rc, i;
+    int rc;
 
     struct stat sb;
     struct serial_struct si;
diff --git a/loader/shutdown.c b/loader/shutdown.c
index 5ba8fc6..026cb59 100644
--- a/loader/shutdown.c
+++ b/loader/shutdown.c
@@ -143,7 +143,7 @@ int main(int argc, char ** argv) {
     dup2(fd, 2);
     close(fd);
 
-    shutDown(0, doReboot, 0);
+    shutDown(0, doReboot);
     return 0;
 }
 #endif
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux