aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
commit5f7336afa299a9f69b66eb37520323a91d2a62bb (patch)
tree10ae32fd12a3fd778b4a66135fc3ea5aca52e55b
parentc0106af1f5039ff2988a970eb1ff36dd1ca80b67 (diff)
downloadsyslinux-5f7336afa299a9f69b66eb37520323a91d2a62bb.tar.gz
syslinux-5f7336afa299a9f69b66eb37520323a91d2a62bb.tar.xz
syslinux-5f7336afa299a9f69b66eb37520323a91d2a62bb.zip
Run Nindent on sample/atou.c
Automatically reformat sample/atou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--sample/atou.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sample/atou.c b/sample/atou.c
index 84475b68..73b0bb79 100644
--- a/sample/atou.c
+++ b/sample/atou.c
@@ -1,13 +1,12 @@
-static inline int
-isdigit(int ch)
+static inline int isdigit(int ch)
{
- return (ch >= '0') && (ch <= '9');
+ return (ch >= '0') && (ch <= '9');
}
unsigned int atou(const char *s)
{
- unsigned int i = 0;
- while (isdigit(*s))
- i = i*10 + (*s++ - '0');
- return i;
+ unsigned int i = 0;
+ while (isdigit(*s))
+ i = i * 10 + (*s++ - '0');
+ return i;
}