summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-01-16 20:07:13 +0000
committerphintuka <phintuka>2010-01-16 20:07:13 +0000
commit9fcb9265af3350d440321d81a803f38716a9749a (patch)
tree586fad330d55f8ccfb4f9996d0b02815396b6fc2
parentde7bc391afb220969f7134e2f96c667fa22f30bb (diff)
downloadxineliboutput-9fcb9265af3350d440321d81a803f38716a9749a.tar.gz
xineliboutput-9fcb9265af3350d440321d81a803f38716a9749a.tar.bz2
Use INT64_C()
-rw-r--r--frontend_svr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index fff96e55..1abfdbf9 100644
--- a/frontend_svr.c
+++ b/frontend_svr.c
@@ -4,11 +4,12 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_svr.c,v 1.82 2009-09-28 12:22:14 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.83 2010-01-16 20:07:13 phintuka Exp $
*
*/
#define __STDC_FORMAT_MACROS
+#define __STDC_CONSTANT_MACROS
#include <inttypes.h>
#include <stdlib.h>
@@ -348,7 +349,7 @@ int64_t cXinelibServer::GetSTC(void)
// check if there are any clients
if(!HasClients()) {
Unlock();
- return -1ULL;
+ return INT64_C(-1);
}
// Query client(s)
@@ -359,7 +360,7 @@ int64_t cXinelibServer::GetSTC(void)
if(! m_StcFuture->Wait(200)) {
LOGMSG("cXinelibServer::GetSTC timeout (200ms)");
- return -1ULL;
+ return INT64_C(-1);
}
//if(delay.Elapsed() > 0 && !is_Paused)
@@ -570,7 +571,6 @@ int cXinelibServer::Xine_Control(const char *cmd)
int len = snprintf(buf, sizeof(buf), "%s\r\n", cmd);
if(len >= (int)sizeof(buf)) {
LOGMSG("Xine_Control: command truncated !");
- //len = sizeof(buf);
return 0;
}