* fixed gcc4-build of DriverSettingsTest
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30866 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -228,13 +229,13 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// load additional files specified on the command line
|
// load additional files specified on the command line
|
||||||
|
|
||||||
for (int32 i = 1; i < argc; i++) {
|
for (int32 i = 1; i < argc; i++) {
|
||||||
const char *name = argv[i];
|
const char *name = argv[i];
|
||||||
if (name[0] == '-')
|
if (name[0] == '-')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// make path absolute, so that load_driver_settings()
|
// make path absolute, so that load_driver_settings()
|
||||||
// doesn't search in the standard directory
|
// doesn't search in the standard directory
|
||||||
BPath path(name);
|
BPath path(name);
|
||||||
load_settings(path.Path());
|
load_settings(path.Path());
|
||||||
@@ -244,7 +245,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
for (uint32 i = 0; i < sizeof(kSettings) / sizeof(char *); i++)
|
for (uint32 i = 0; i < sizeof(kSettings) / sizeof(char *); i++)
|
||||||
check_settings_string(i);
|
check_settings_string(i);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user