diff --git a/res/res_pktccops.c b/res/res_pktccops.c
index cdd464ab82f8cab24518f2beab54285a5ebffdad..512e88255dcac2866912cd1abbcd631e48956869 100644
--- a/res/res_pktccops.c
+++ b/res/res_pktccops.c
@@ -378,7 +378,7 @@ static int cops_getmsg (int sfd, struct copsmsg *recmsg)
 static int cops_sendmsg (int sfd, struct copsmsg * sendmsg)
 {
 	char *buf;
-	int bufpos, res;
+	int bufpos;
 	struct pktcobj *pobject;
 	
 	if (sfd < 0) {