[svn-commits] kpfleming: branch mogorman/zaptel-1.2-transcoder
r2028 - /team/mogorman/zapte...
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Jan 30 15:21:30 MST 2007
Author: kpfleming
Date: Tue Jan 30 16:21:30 2007
New Revision: 2028
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2028
Log:
howabout we specify the arguments to list_add_tail in the proper order, eh?
Modified:
team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c
Modified: team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c?view=diff&rev=2028&r1=2027&r2=2028
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c Tue Jan 30 16:21:30 2007
@@ -405,7 +405,7 @@
cmdq->cmdlen = length;
memcpy(cmdq->cmd, data, length);
- list_add_tail(&wc->pending_cmdq, &cmdq->list);
+ list_add_tail(&cmdq->list, &wc->pending_cmdq);
return 0;
}
@@ -572,9 +572,7 @@
printk("\n");
}
- cmdq->cmdlen = 0;
-
- list_add_tail(&wc->free_cmdq, &cmdq->list);
+ list_add_tail(&cmdq->list, &wc->free_cmdq);
return 0;
}
@@ -736,7 +734,7 @@
memcpy(cmdq->cmd, fifo, sizeof(fifo));
memcpy(cmdq->cmd + sizeof(fifo), chars, inbytes);
cmdq->cmdlen = sizeof(fifo) + inbytes;
- list_add_tail(&wc->pending_cmdq, &cmdq->list);
+ list_add_tail(&cmdq->list, &wc->pending_cmdq);
__transmit_demand(wc);
up(&wc->cmdqsem);
st->packets_sent++;
More information about the svn-commits
mailing list