Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
Addressing:
openscap/src/OVAL/oval_probe.c: In function ‘oval_probe_query_object’:
openscap/src/OVAL/oval_probe.c:145:15: warning: implicit declaration of function ‘oscap_sprintf’; did you mean ‘oscap_vsprintf’? [-Wimplicit-function-declaration]
   char *msg = oscap_sprintf("OVAL object '%s_object' is not supported.", type_name);
               ^~~~~~~~~~~~~
               oscap_vsprintf
openscap/src/OVAL/oval_probe.c:145:15: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  • Loading branch information
isimluk committed Jul 14, 2019
1 parent 8617e44 commit f801465
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OVAL/oval_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
# include <pthread.h>
#endif

#include "oscap_helpers.h"
#include "oval_probe.h"
#include "oval_system_characteristics.h"
#include "common/_error.h"
Expand Down

0 comments on commit f801465

Please sign in to comment.