Skip to content

Commit

Permalink
Merge pull request #256 from flaviojs/fix-compilation-udp_recv-udp_send
Browse files Browse the repository at this point in the history
Fix compilation of udp_recv and udp_send.
  • Loading branch information
grossmj authored Oct 5, 2024
2 parents 41cf5ce + c89eec0 commit ed80796
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion common/dynamips.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ char *hypervisor_ip_address = NULL;

/* Log file */
char *log_file_name = NULL;
FILE *log_file = NULL;

/* VM flags */
volatile int vm_save_state = 0;
Expand Down
3 changes: 0 additions & 3 deletions common/dynamips.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ struct symbol {
/* ROM identification tag */
#define ROM_ID 0x1e94b3df

/* Global log file */
extern FILE *log_file;

/* Operating system name */
extern const char *os_name;

Expand Down
2 changes: 1 addition & 1 deletion common/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "utils.h"

extern FILE *log_file;
FILE *log_file = NULL;

/* Add an element to a list */
m_list_t *m_list_add(m_list_t **head,void *data)
Expand Down
3 changes: 3 additions & 0 deletions stable/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <netinet/in.h>
#include <signal.h>

/* Global log file */
extern FILE *log_file;

/* Host CPU Types */
#define CPU_x86 0
#define CPU_amd64 1
Expand Down
3 changes: 3 additions & 0 deletions unstable/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <netinet/in.h>
#include <signal.h>

/* Global log file */
extern FILE *log_file;

/* Host CPU Types */
#define CPU_x86 0
#define CPU_amd64 1
Expand Down

0 comments on commit ed80796

Please sign in to comment.