[PATCH] Correct telnetd uint declaration

Jakob Viketoft jakob.viketoft at aacmicrotec.com
Fri Feb 19 09:38:07 UTC 2016


Hello!

We came across this when running part of the network tests. I don't know if it's completely unused since it's been there for a while or we misunderstood how this declaration is supposed to happen, but here's a patch anyway.

Best regards,

       /Jakob

diff --git a/cpukit/telnetd/des.c b/cpukit/telnetd/des.c
index 542e896..ee0f863 100644
--- a/cpukit/telnetd/des.c
+++ b/cpukit/telnetd/des.c
@@ -847,7 +847,7 @@ __des_crypt(const char *key, const char *setting)
 void
 des_snap(void **pf, void **pd)
 {
-  uint8* pfc;
+  uint8_t * pfc;
   *pf = malloc(sizeof(struct fixed1) + sizeof(struct fixed2) + sizeof(struct fixed3) + sizeof(struct fixed4));
   pfc = *pf;
   memcpy(pfc, &des1_f, sizeof(des1_f));
@@ -864,7 +864,7 @@ des_snap(void **pf, void **pd)
 void
 des_check(void *pf, void *pd)
 {
-  uint8* pfc1, pfc2, pfc3, pfc4;
+  uint8_t * pfc1, pfc2, pfc3, pfc4;
   pfc1 = pf;
   pfc2 = pfc1 + sizeof(des1_f);
   pfc3 = pfc2 + sizeof(des2_f);



Jakob Viketoft
Senior Engineer in RTL and embedded software

ÅAC Microtec AB
Dag Hammarskjölds väg 48
SE-751 83 Uppsala, Sweden

T: +46 702 80 95 97
http://www.aacmicrotec.com


More information about the devel mailing list