summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <nomeata@debian.org>2019-01-07 13:12:45 +0100
committerAndrej Shadura <andrewsh@debian.org>2019-01-07 13:12:45 +0100
commitae6b1aa2028c8bd2d3c2b93d29d038363de60903 (patch)
tree176c6eb338183f2356d37c5f3c155cc7ca94af83
parentaeb60c0b92ade0848255407c007ce3ea72349815 (diff)
Fixes powerpc signed/unsigned problems with getopts
Gbp-Pq: Name 03-fix-powerpc-getopts.dpatch
-rw-r--r--src/osdctl/osdctl.c2
-rw-r--r--src/osdsh/osdsh.c2
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'},