mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-14 15:04:37 +00:00
Fix compile warnings
Noticed these while compiling in the latest alpine image. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
parent
c3f7d15e26
commit
09cdc857c1
@ -25,7 +25,7 @@ limitations under the License.
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/errno.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
@ -146,7 +146,7 @@ void read(const char *filename)
|
||||
open_file(filename, "r");
|
||||
}
|
||||
|
||||
uid_t become_user(const char *user)
|
||||
void become_user(const char *user)
|
||||
{
|
||||
struct passwd *pw;
|
||||
pw = getpwnam(user);
|
||||
|
Loading…
Reference in New Issue
Block a user