Browse Source

jack_server_control patch + getopt_long usage fix.

tags/1.9.9.5
Stephane Letz 13 years ago
parent
commit
a7d390b334
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      example-clients/metro.c
  2. +1
    -1
      example-clients/netmaster.c
  3. +2
    -1
      example-clients/server_control.cpp

+ 1
- 1
example-clients/metro.c View File

@@ -154,7 +154,7 @@ main (int argc, char *argv[])
{0, 0, 0, 0}
};

while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) {
while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) {
switch (opt) {
case 'f':
if ((freq = atoi (optarg)) <= 0) {


+ 1
- 1
example-clients/netmaster.c View File

@@ -73,7 +73,7 @@ main (int argc, char *argv[])
{0, 0, 0, 0}
};

while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) {
while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) {

switch (opt) {



+ 2
- 1
example-clients/server_control.cpp View File

@@ -153,9 +153,10 @@ int main(int argc, char *argv[])
struct option long_options[] = {
{"driver", 1, 0, 'd'},
{"client", 1, 0, 'c'},
{0, 0, 0, 0}
};

while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) {
while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) {
switch (opt) {
case 'd':
driver_name = optarg;


Loading…
Cancel
Save