The following commit has been merged in the master branch:
commit 5da3e92afcb6109feed5e9dac155eb3ca75010eb
Author: Guillem Jover <[email protected]>
Date: Sat Oct 10 19:30:20 2009 +0200
Do not use C++ style comments in C code
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 5536a50..daaf1f9 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -160,7 +160,7 @@ getfi(const char *root, int fd)
else
return NULL;
}
- if (res==0) // EOF -> parent died
+ if (res == 0) /* EOF -> parent died. */
return NULL;
if (fn[i] == '\0')
break;
diff --git a/scripts/t/200_Dpkg_Shlibs/symboltags.c
b/scripts/t/200_Dpkg_Shlibs/symboltags.c
index a4d1de0..a80b46c 100644
--- a/scripts/t/200_Dpkg_Shlibs/symboltags.c
+++ b/scripts/t/200_Dpkg_Shlibs/symboltags.c
@@ -1,7 +1,11 @@
-// gcc -shared -fPIC -Wl,-soname -Wl,libsymboltags.so.1 -o libsymboltags.so.1
-DAMD64 symboltags.c
-// objdump -wfpTR libsymboltags.so.1 > objdump.tags-amd64
-// gcc -shared -fPIC -Wl,-soname -Wl,libsymboltags.so.1 -o libsymboltags.so.1
symboltags.c
-// objdump -wfpTR libsymboltags.so.1 > objdump.tags-i386
+/*
+ * $ gcc -shared -fPIC -Wl,-soname -Wl,libsymboltags.so.1 \
+ * -o libsymboltags.so.1 -DAMD64 symboltags.c
+ * $ objdump -wfpTR libsymboltags.so.1 > objdump.tags-amd64
+ * $ gcc -shared -fPIC -Wl,-soname -Wl,libsymboltags.so.1 \
+ * -o libsymboltags.so.1 symboltags.c
+ * $ objdump -wfpTR libsymboltags.so.1 > objdump.tags-i386
+ */
void symbol11_optional() {}
@@ -15,7 +19,7 @@ void* symbol22_i386() {}
void symbol31_randomtag() {}
-// (arch=i386|optional)symbol41_i386_and_optio...@base
+/* (arch=i386|optional)symbol41_i386_and_optio...@base */
#ifndef AMD64
void symbol41_i386_and_optional() {}
#endif
diff --git a/src/configure.c b/src/configure.c
index 1043aed..72d15de 100644
--- a/src/configure.c
+++ b/src/configure.c
@@ -400,7 +400,7 @@ conffderef(struct pkginfo *pkg, struct varbuf *result,
const char *in)
pkg->name, in, result->buf,
strerror(errno));
return -1;
}
- assert(r == stab.st_size); // XXX: debug
+ assert(r == stab.st_size); /* XXX: debug */
symlink.used = r;
varbufaddc(&symlink, '\0');
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]