freemyipod r19 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r18‎ | r19 | r20 >
Date:00:06, 5 August 2010
Author:theseven
Status:new
Tags:
Comment:
Simplify strlen.c
Modified paths:
  • /embios/trunk/strlen.c (modified) (history)

Diff [purge]

Index: embios/trunk/strlen.c
@@ -22,19 +22,13 @@
2323
2424
2525 #include "global.h"
26 -#include <string.h>
27 -#include <limits.h>
2826
29 -#ifndef _CONST
30 -#define _CONST const
31 -#endif
3227
33 -size_t strlen(_CONST char *str)
 28+size_t strlen(const char *str)
3429 {
35 - _CONST char *start = str;
 30+ const char *start = str;
3631
37 - while (*str)
38 - str++;
 32+ while (*str) str++;
3933
4034 return str - start;
4135 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r23Merge r18 and r19 into branches/4g_compat.farthen04:20, 5 August 2010