summaryrefslogtreecommitdiff
path: root/com32/lib/strdup.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
commitae78593e1355783bfb1ea9badaf031e6bc6427c2 (patch)
treebea557c40d730599b0f1ebdbf985452f3d60d437 /com32/lib/strdup.c
parentdf3f640b9006e63c950e92a27b7484061788c612 (diff)
downloadsyslinux-ae78593e1355783bfb1ea9badaf031e6bc6427c2.tar.gz
Run Nindent on com32/lib/strdup.c
Automatically reformat com32/lib/strdup.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>
Diffstat (limited to 'com32/lib/strdup.c')
-rw-r--r--com32/lib/strdup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/com32/lib/strdup.c b/com32/lib/strdup.c
index eb170c26..766958b1 100644
--- a/com32/lib/strdup.c
+++ b/com32/lib/strdup.c
@@ -7,11 +7,11 @@
char *strdup(const char *s)
{
- int l = strlen(s)+1;
- char *d = malloc(l);
+ int l = strlen(s) + 1;
+ char *d = malloc(l);
- if ( d )
- memcpy(d, s, l);
+ if (d)
+ memcpy(d, s, l);
- return d;
+ return d;
}