# HG changeset patch # User mru # Date 1182559647 0 # Node ID 99f7793b7311c774b2b4e03c8e78ce07c004a4cc # Parent 6eb481ce83d96a7a494cd0b5d3d35995078f659e cosmetic: combine declaration and initialisation diff -r 6eb481ce83d9 -r 99f7793b7311 cutils.c --- a/cutils.c Sat Jun 23 00:21:06 2007 +0000 +++ b/cutils.c Sat Jun 23 00:47:27 2007 +0000 @@ -86,8 +86,7 @@ /* strcat and truncate. */ char *pstrcat(char *buf, int buf_size, const char *s) { - int len; - len = strlen(buf); + int len = strlen(buf); if (len < buf_size) pstrcpy(buf + len, buf_size - len, s); return buf;