As the subject line says, two minor fixes to dtterm.
-Rob
From 1802d0fb59d438d5ca97507fd1cd51606b161da8 Mon Sep 17 00:00:00 2001
From: Robert Tomsick <rob...@tomsick.net>
Date: Wed, 8 Aug 2012 19:49:45 -0400
Subject: [PATCH 2/2] dtterm: logger - use socklen_t for addrlen in
serve(char, int, int)
Signed-off-by: Robert Tomsick <rob...@tomsick.net>
---
cde/programs/dtterm/util/logger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cde/programs/dtterm/util/logger.c b/cde/programs/dtterm/util/logger.c
index d6ce40d..e7b43ee 100644
--- a/cde/programs/dtterm/util/logger.c
+++ b/cde/programs/dtterm/util/logger.c
@@ -166,7 +166,7 @@ serve(char *progName, int s, int logfd)
{
int i;
int cc;
- int addrlen;
+ socklen_t addrlen;
char *c1;
char buffer[BUFSIZ];
struct sockaddr_in clientaddr_in;
--
1.7.10.4
From fbba33db57c6fa42774df99c2309559fc4c7309a Mon Sep 17 00:00:00 2001
From: Robert Tomsick <rob...@tomsick.net>
Date: Wed, 8 Aug 2012 19:39:01 -0400
Subject: [PATCH 1/2] dtterm: include string.h for memset
Signed-off-by: Robert Tomsick <rob...@tomsick.net>
---
cde/programs/dtterm/util/logger.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cde/programs/dtterm/util/logger.c b/cde/programs/dtterm/util/logger.c
index 3f6a346..d6ce40d 100644
--- a/cde/programs/dtterm/util/logger.c
+++ b/cde/programs/dtterm/util/logger.c
@@ -23,6 +23,7 @@
/* $XConsortium: logger.c /main/3 1995/10/31 12:04:16 rswiston $ */
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
--
1.7.10.4
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel