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
|
From: Joachim Breitner <[email protected]>
Subject: Fixes powerpc signed/unsigned problems with getopts
--- a/src/osdctl/osdctl.c
b/src/osdctl/osdctl.c
@@ -70,7 70,7 @@
/* ============================ main () ============================== */
int main(int argc, char *argv[])
{
- char c;
int c;
char command[BUFSIZ];
int opt_index = 0;
struct option opts[] = {
--- a/src/osdsh/osdsh.c
b/src/osdsh/osdsh.c
@@ -50,7 50,7 @@
/* ============================ 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'},
|