Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 643122
Collapse All | Expand All

(-)open-iscsi-2.0.875~/include/iscsi_err.h (-2 / +4 lines)
Lines 4-10 Link Here
4
#ifndef _ISCSI_ERR_
4
#ifndef _ISCSI_ERR_
5
#define _ISCSI_ERR_
5
#define _ISCSI_ERR_
6
6
7
enum {
7
enum iscsi_error_list {
8
	ISCSI_SUCCESS			= 0,
8
	ISCSI_SUCCESS			= 0,
9
	/* Generic error */
9
	/* Generic error */
10
	ISCSI_ERR			= 1,
10
	ISCSI_ERR			= 1,
Lines 71-77 enum { Link Here
71
71
72
	/* Always last. Indicates end of error code space */
72
	/* Always last. Indicates end of error code space */
73
	ISCSI_MAX_ERR_VAL,
73
	ISCSI_MAX_ERR_VAL,
74
} iscsi_err;
74
};
75
76
extern enum iscsi_error_list iscsi_err;
75
77
76
extern void iscsi_err_print_msg(int err);
78
extern void iscsi_err_print_msg(int err);
77
extern char *iscsi_err_to_str(int err);
79
extern char *iscsi_err_to_str(int err);
(-)open-iscsi-2.0.875~/include/iscsi_if.h (-1 / +1 lines)
Lines 341-347 struct iscsi_iface_param_info { Link Here
341
	uint8_t iface_type;	/* IPv4 or IPv6 */
341
	uint8_t iface_type;	/* IPv4 or IPv6 */
342
	uint8_t param_type;	/* iscsi_param_type */
342
	uint8_t param_type;	/* iscsi_param_type */
343
	uint8_t value[0];	/* length sized value follows */
343
	uint8_t value[0];	/* length sized value follows */
344
} __packed;
344
} __attribute__((__packed__));
345
345
346
/*
346
/*
347
 * To keep the struct iscsi_uevent size the same for userspace code
347
 * To keep the struct iscsi_uevent size the same for userspace code
(-)open-iscsi-2.0.875~/iscsiuio/configure.ac (-1 / +1 lines)
Lines 70-76 AC_CONFIG_COMMANDS([default],[[ Link Here
70
    else
70
    else
71
        echo 'char *build_date = "'`date`'";' > src/unix/build_date.c
71
        echo 'char *build_date = "'`date`'";' > src/unix/build_date.c
72
    fi
72
    fi
73
    echo 'char *build_date;'> src/unix/build_date.h
73
    echo 'extern char *build_date;'> src/unix/build_date.h
74
]],[[]])
74
]],[[]])
75
75
76
AC_PREFIX_DEFAULT()
76
AC_PREFIX_DEFAULT()
(-)open-iscsi-2.0.875~/iscsiuio/src/uip/uip.h (-2 / +2 lines)
Lines 70-77 struct uip_stack; Link Here
70
typedef u16_t uip_ip4addr_t[2];
70
typedef u16_t uip_ip4addr_t[2];
71
typedef u16_t uip_ip6addr_t[8];
71
typedef u16_t uip_ip6addr_t[8];
72
72
73
const uip_ip6addr_t all_zeroes_addr6;
73
extern const uip_ip6addr_t all_zeroes_addr6;
74
const uip_ip4addr_t all_zeroes_addr4;
74
extern const uip_ip4addr_t all_zeroes_addr4;
75
75
76
#define ETH_BUF(buf) ((struct uip_eth_hdr *)buf)
76
#define ETH_BUF(buf) ((struct uip_eth_hdr *)buf)
77
#define VLAN_ETH_BUF(buf) ((struct uip_vlan_eth_hdr *)buf)
77
#define VLAN_ETH_BUF(buf) ((struct uip_vlan_eth_hdr *)buf)
(-)open-iscsi-2.0.875~/usr/log.c (+1 lines)
Lines 33-38 Link Here
33
33
34
char *log_name;
34
char *log_name;
35
int log_level = 0;
35
int log_level = 0;
36
struct logarea *la = NULL;
36
37
37
static int log_stop_daemon = 0;
38
static int log_stop_daemon = 0;
38
static void (*log_func)(int prio, void *priv, const char *fmt, va_list ap);
39
static void (*log_func)(int prio, void *priv, const char *fmt, va_list ap);
(-)open-iscsi-2.0.875~/usr/log.h (-1 / +1 lines)
Lines 64-70 struct logarea { Link Here
64
	union semun semarg;
64
	union semun semarg;
65
};
65
};
66
66
67
struct logarea *la;
67
extern struct logarea *la;
68
68
69
extern int log_init(char *program_name, int size,
69
extern int log_init(char *program_name, int size,
70
	void (*func)(int prio, void *priv, const char *fmt, va_list ap),
70
	void (*func)(int prio, void *priv, const char *fmt, va_list ap),

Return to bug 643122