Skip to content

Update mlvpn.c to make it work for uClibc1.014_eabi of my armv7 CPU - #1

Open
link4all wants to merge 1 commit into
markfoodyburton:new-reorderfrom
link4all:patch-1
Open

Update mlvpn.c to make it work for uClibc1.014_eabi of my armv7 CPU#1
link4all wants to merge 1 commit into
markfoodyburton:new-reorderfrom
link4all:patch-1

Conversation

@link4all

Copy link
Copy Markdown

c = getopt_long(argc, argv, optstr, long_options, &option_index); when c is char type it will return -1 in x86 and mips CPU but it will return 255 all the time and I never get -1 in my armv7 CPU with uClibc1.014_eabi . So the program will blocked in preset_permitted() and never go next. But when I correct the c as int type. It works fine for me.

c = getopt_long(argc, argv, optstr, long_options, &option_index);  when c is char type it will return -1 in x86 and mips CPU but it will return 255 all the time and I never get -1 in my armv7 CPU with uClibc1.014_eabi  .  So the  program will blocked in preset_permitted() and never go next. But when I correct the c as int type. It works fine for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant