]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
script: include head with prototype of ply_get_timestamp()
authorSteve Langasek <steve.langasek@canonical.com>
Fri, 28 Jun 2013 17:52:59 +0000 (10:52 -0700)
committerRay Strode <rstrode@redhat.com>
Fri, 28 Jun 2013 18:29:40 +0000 (14:29 -0400)
ply_get_timestamp() returns a double, but the compiler assumes it will
return an int if ply-utils.h isn't #included.  This disparity between
what gets returned and what the compiler is expecting will be returned
causes astonishing knock-on effects (the label plugin fails to display
any text). See:

https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1187318

and

http://lists.freedesktop.org/archives/plymouth/2013-June/000733.html

src/plugins/splash/script/script-lib-math.c

index 1a07b0482c9d613a25861265bd409a51afd24eea..3f2dc7978dcaf3c19493754a56ef36c77fd47d37 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "config.h"
 
+#include "ply-utils.h"
 #include "script.h"
 #include "script-parse.h"
 #include "script-execute.h"