]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/tipc/name_distr.c
Driver core: add device_type to struct device
[linux-2.6-omap-h63xx.git] / net / tipc / name_distr.c
index f0b063bcc2a9982c36b7b65bd51bcb3c7ec3a610..7bf87cb26ef3e0dbf072f760d112052646e9f357 100644 (file)
  */
 
 struct distr_item {
-       u32 type;
-       u32 lower;
-       u32 upper;
-       u32 ref;
-       u32 key;
+       __be32 type;
+       __be32 lower;
+       __be32 upper;
+       __be32 ref;
+       __be32 key;
 };
 
 /**
@@ -122,7 +122,7 @@ void tipc_named_publish(struct publication *publ)
        struct sk_buff *buf;
        struct distr_item *item;
 
-       list_add(&publ->local_list, &publ_root);
+       list_add_tail(&publ->local_list, &publ_root);
        publ_cnt++;
 
        buf = named_prepare_buf(PUBLICATION, ITEM_SIZE, 0);