-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
rc = usocklnd_send_tx(conn, tx);
if (rc == 0) { /* partial send or connection closed */
pthread_mutex_lock(&conn->uc_lock);
- cfs_list_add(&tx->tx_list, &conn->uc_tx_list);
+ list_add(&tx->tx_list, &conn->uc_tx_list);
conn->uc_sending = 0;
pthread_mutex_unlock(&conn->uc_lock);
partial_send = 1;
/* schedule write handler */
if (partial_send ||
(conn->uc_state == UC_READY &&
- (!cfs_list_empty(&conn->uc_tx_list) ||
- !cfs_list_empty(&conn->uc_zcack_list)))) {
+ (!list_empty(&conn->uc_tx_list) ||
+ !list_empty(&conn->uc_zcack_list)))) {
conn->uc_tx_deadline =
cfs_time_shift(usock_tuns.ut_timeout);
conn->uc_tx_flag = 1;