Skip to content

Commit

Permalink
Move includes from block to file scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
JavDomGom committed Jan 11, 2021
1 parent 73ffc34 commit e046e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <unistd.h>
#include <getopt.h>
#include "libcommon.h"
#include "libauditlog.h"
#include "libjoblog.h"

int main (int argc, char *argv[])
{
Expand Down Expand Up @@ -80,12 +82,10 @@ int main (int argc, char *argv[])

if (!strcmp (type, "audit"))
{
#include "libauditlog.h"
processAuditLog (file);
}
else if (!strcmp (type, "job"))
{
#include "libjoblog.h"
processJobLog (file, language);
}
else
Expand Down

0 comments on commit e046e06

Please sign in to comment.