~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the new mLib macros for discarding uninteresting error codes.
[tripe]
/
server
/
servutil.c
diff --git
a/server/servutil.c
b/server/servutil.c
index
1f6301a
..
dbca451
100644
(file)
--- a/
server/servutil.c
+++ b/
server/servutil.c
@@
-30,7
+30,7
@@
/*----- Global variables --------------------------------------------------*/
/*----- Global variables --------------------------------------------------*/
-octet buf_i[PKBUFSZ], buf_o[PKBUFSZ], buf_t[PKBUFSZ];
+octet buf_i[PKBUFSZ], buf_o[PKBUFSZ], buf_t[PKBUFSZ]
, buf_u[PKBUFSZ]
;
/*----- Main code ---------------------------------------------------------*/
/*----- Main code ---------------------------------------------------------*/
@@
-41,14
+41,14
@@
octet buf_i[PKBUFSZ], buf_o[PKBUFSZ], buf_t[PKBUFSZ];
* Returns: A pointer to the integer's textual representation.
*
* Use: Converts a multiprecision integer to a string. Corrupts
* Returns: A pointer to the integer's textual representation.
*
* Use: Converts a multiprecision integer to a string. Corrupts
- * @buf_
t
@.
+ * @buf_
u
@.
*/
const char *mpstr(mp *m)
{
*/
const char *mpstr(mp *m)
{
- if (mp_writestring(m, (char *)buf_
t, sizeof(buf_t
), 10))
+ if (mp_writestring(m, (char *)buf_
u, sizeof(buf_u
), 10))
return ("<failed>");
return ("<failed>");
- return ((const char *)buf_
t
);
+ return ((const char *)buf_
u
);
}
/* --- @gestr@ --- *
}
/* --- @gestr@ --- *
@@
-59,14
+59,14
@@
const char *mpstr(mp *m)
* Returns: A pointer to the element's textual representation.
*
* Use: Converts a group element to a string. Corrupts
* Returns: A pointer to the element's textual representation.
*
* Use: Converts a group element to a string. Corrupts
- * @buf_
t
@.
+ * @buf_
u
@.
*/
const char *gestr(group *g, ge *x)
{
*/
const char *gestr(group *g, ge *x)
{
- if (group_writestring(g, x, (char *)buf_
t, sizeof(buf_t
)))
+ if (group_writestring(g, x, (char *)buf_
u, sizeof(buf_u
)))
return ("<failed>");
return ("<failed>");
- return ((const char *)buf_
t
);
+ return ((const char *)buf_
u
);
}
/* --- @timestr@ --- *
}
/* --- @timestr@ --- *
@@
-76,7
+76,7
@@
const char *gestr(group *g, ge *x)
* Returns: A pointer to a textual representation of the time.
*
* Use: Converts a time to a textual representation. Corrupts
* Returns: A pointer to a textual representation of the time.
*
* Use: Converts a time to a textual representation. Corrupts
- * @buf_
t
@.
+ * @buf_
u
@.
*/
const char *timestr(time_t t)
*/
const char *timestr(time_t t)
@@
-85,8
+85,8
@@
const char *timestr(time_t t)
if (!t)
return ("NEVER");
tm = localtime(&t);
if (!t)
return ("NEVER");
tm = localtime(&t);
- strftime((char *)buf_
t, sizeof(buf_t
), "%Y-%m-%dT%H:%M:%S", tm);
- return ((const char *)buf_
t
);
+ strftime((char *)buf_
u, sizeof(buf_u
), "%Y-%m-%dT%H:%M:%S", tm);
+ return ((const char *)buf_
u
);
}
/* --- @mystrieq@ --- *
}
/* --- @mystrieq@ --- *