Re: [PATCH] small fixes for example programs in Documentation/cdrom/sbpcd

From: Eberhard Moenkeberg
Date: Wed Mar 16 2005 - 18:15:36 EST


Hi,

On Wed, 16 Mar 2005, Jesper Juhl wrote:

Example programs in documentation files are great, but they are even
better when they compile :)

The second one, the "cdtester" utility, is still not completely happy, but
at least the patch fixes up most of the warnings and errors when trying to
build it. The first app is perfectly happy here after this patch.

Thanks.
One small correction: your words "still not" should read "no longer".
Because old happiness already lasted more than 10 years (I guess 11, because my son has grown to 23 meanwhile).

-main(int argc, char *argv[])
+int main(int argc, char *argv[])

+ return 0;

-#endif SBP_PRIVATE_IOCTLS
+#endif /* SBP_PRIVATE_IOCTLS */

-#endif AZT_PRIVATE_IOCTLS
+#endif /* AZT_PRIVATE_IOCTLS */

-main(int argc, char *argv[])
+int main(int argc, char *argv[])

-#endif SBP_PRIVATE_IOCTLS
+#endif /* SBP_PRIVATE_IOCTLS */
+ return 0;

Do it.
I'm kind of proud, only "cosmetical" changes after a whole decennium. ;-))

Cheers -e
--
Eberhard Moenkeberg (emoenke@xxxxxxx, em@xxxxxxx)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/