Impact: Fix compilation warning, signature change.
Handle command line arguments as const. This fixes a compilation
warning.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* Find the last instance of a particular command line argument
* (which should include the final =; do not use for boolean arguments)
*/
-char *find_argument(const char **argv, const char *argument)
+const char *find_argument(const char **argv, const char *argument)
{
int la = strlen(argument);
const char **arg;
- char *ptr = NULL;
+ const char *ptr = NULL;
for (arg = argv; *arg; arg++) {
if (!memcmp(*arg, argument, la))
char pciids_path[255];
};
-char *find_argument(const char **argv, const char *argument);
+const char *find_argument(const char **argv, const char *argument);
int detect_dmi(struct s_hardware *hardware);
void detect_disks(struct s_hardware *hardware);
void detect_pci(struct s_hardware *hardware);