projects
/
runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Created SILC Runtime Toolkit git repository Part II.
[runtime.git]
/
lib
/
silcutil
/
silcutil.c
diff --git
a/lib/silcutil/silcutil.c
b/lib/silcutil/silcutil.c
index 75e85f933fbecc049e1251b132f6b338714590d2..0d6498f390e954a86457237ac52f92ee7f23d377 100644
(file)
--- a/
lib/silcutil/silcutil.c
+++ b/
lib/silcutil/silcutil.c
@@
-20,9
+20,8
@@
* These are general utility functions that doesn't belong to any specific
* group of routines.
*/
* These are general utility functions that doesn't belong to any specific
* group of routines.
*/
-/* $Id$ */
-#include "silc.h"
+#include "silc
runtime
.h"
/* Gets line from a buffer. Stops reading when a newline or EOF occurs.
This doesn't remove the newline sign from the destination buffer. The
/* Gets line from a buffer. Stops reading when a newline or EOF occurs.
This doesn't remove the newline sign from the destination buffer. The
@@
-256,14
+255,14
@@
char *silc_fingerprint(const unsigned char *data, SilcUInt32 data_len)
return NULL;
for (i = 0; i < data_len; i++) {
return NULL;
for (i = 0; i < data_len; i++) {
- silc_snprintf(cp, len, "%02X", data[i]);
+ silc_snprintf(
(char *)
cp, len, "%02X", data[i]);
cp += 2;
len -= 2;
if ((i + 1) % 2 == 0)
cp += 2;
len -= 2;
if ((i + 1) % 2 == 0)
- silc_snprintf(cp++, len--, " ");
+ silc_snprintf(
(char *)
cp++, len--, " ");
if ((i + 1) % 10 == 0)
if ((i + 1) % 10 == 0)
- silc_snprintf(cp++, len--, " ");
+ silc_snprintf(
(char *)
cp++, len--, " ");
}
i--;
if ((i + 1) % 10 == 0)
}
i--;
if ((i + 1) % 10 == 0)
@@
-271,7
+270,7
@@
char *silc_fingerprint(const unsigned char *data, SilcUInt32 data_len)
if ((i + 1) % 2 == 0)
*(--cp) = '\0';
if ((i + 1) % 2 == 0)
*(--cp) = '\0';
- return fingerprint;
+ return
(char *)
fingerprint;
}
/* Return TRUE if the `data' is ASCII string. */
}
/* Return TRUE if the `data' is ASCII string. */