[DRBD-cvs] svn commit by lars - r3023 - branches/drbd-8.1/user -
make it compile (no more typedefs)
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Sat Aug 25 11:02:22 CEST 2007
Author: lars
Date: 2007-08-25 11:01:32 +0200 (Sat, 25 Aug 2007)
New Revision: 3023
Modified:
branches/drbd-8.1/user/drbdsetup.c
Log:
make it compile (no more typedefs)
Modified: branches/drbd-8.1/user/drbdsetup.c
===================================================================
--- branches/drbd-8.1/user/drbdsetup.c 2007-08-25 08:56:57 UTC (rev 3022)
+++ branches/drbd-8.1/user/drbdsetup.c 2007-08-25 09:01:32 UTC (rev 3023)
@@ -1088,7 +1088,7 @@
int minor __attribute((unused)),
unsigned short *rtl)
{
- drbd_state_t state;
+ union drbd_state_t state;
consume_tag_int(T_state_i,rtl,(int*)&state.i);
if ( state.conn == StandAlone &&
state.disk == Diskless) {
@@ -1103,7 +1103,7 @@
int minor __attribute((unused)),
unsigned short *rtl)
{
- drbd_state_t state;
+ union drbd_state_t state;
consume_tag_int(T_state_i,rtl,(int*)&state.i);
if ( state.conn == StandAlone &&
state.disk == Diskless) {
@@ -1118,7 +1118,7 @@
int minor __attribute((unused)),
unsigned short *rtl)
{
- drbd_state_t state;
+ union drbd_state_t state;
consume_tag_int(T_state_i,rtl,(int*)&state.i);
if ( state.conn == StandAlone &&
state.disk == Diskless) {
@@ -1192,7 +1192,7 @@
int print_state(unsigned int seq, int u __attribute((unused)),
struct drbd_nl_cfg_reply *reply)
{
- drbd_state_t state;
+ union drbd_state_t state;
char* str;
int synced = 0;
@@ -1245,7 +1245,7 @@
int wait_after_sb,
struct drbd_nl_cfg_reply *reply)
{
- drbd_state_t state;
+ union drbd_state_t state;
if(reply->packet_type == P_get_state) {
if(consume_tag_int(T_state_i,reply->tag_list,(int*)&state.i)) {
@@ -1261,7 +1261,7 @@
int wait_after_sb,
struct drbd_nl_cfg_reply *reply)
{
- drbd_state_t state;
+ union drbd_state_t state;
if(reply->packet_type == P_get_state) {
if(consume_tag_int(T_state_i,reply->tag_list,(int*)&state.i)) {
More information about the drbd-cvs
mailing list