1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Joachim Breitner <nomeata@debian.org>
Date: Tue, 22 Mar 2005 12:33:26 +0100
Subject: Fixes powerpc signed/unsigned problems with getopts
---
src/osdctl/osdctl.c | 2 +-
src/osdsh/osdsh.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/osdctl/osdctl.c b/src/osdctl/osdctl.c
index 6792e19..9239eb0 100644
--- a/src/osdctl/osdctl.c
+++ b/src/osdctl/osdctl.c
@@ -70,7 +70,7 @@ void script_file(char file[PATH_MAX])
/* ============================ main () ============================== */
int main(int argc, char *argv[])
{
- char c;
+ int c;
char command[BUFSIZ];
int opt_index = 0;
struct option opts[] = {
diff --git a/src/osdsh/osdsh.c b/src/osdsh/osdsh.c
index f80558d..d35fcd5 100644
--- a/src/osdsh/osdsh.c
+++ b/src/osdsh/osdsh.c
@@ -50,7 +50,7 @@ void usage(const int exitcode, const char *error, const char *more)
/* ============================ parse_args () ============================== */
void parse_args(int argc, char *argv[], settings_t * settings)
{
- char c;
+ int c;
int opt_index = 0;
struct option opts[] = {
{"help", 0, 0, 'h'},
|