summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-23 10:37:55 (UTC)
committer mickeyl <mickeyl>2004-04-23 10:37:55 (UTC)
commit85bfee8e542805ff7df67d9786bb291f7d2b34f3 (patch) (side-by-side diff)
treede85a9669e09aadc81ea868d3d88154834cca912
parentd84d16cffe92bfafc5f2433f646dcfa00e6cd7f6 (diff)
downloadopie-85bfee8e542805ff7df67d9786bb291f7d2b34f3.zip
opie-85bfee8e542805ff7df67d9786bb291f7d2b34f3.tar.gz
opie-85bfee8e542805ff7df67d9786bb291f7d2b34f3.tar.bz2
gcc 3.4 fixlet and kill a warning
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/ofilenotify.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiecore/ofilenotify.cpp b/libopie2/opiecore/ofilenotify.cpp
index 5f2a1cc..b576c4f 100644
--- a/libopie2/opiecore/ofilenotify.cpp
+++ b/libopie2/opiecore/ofilenotify.cpp
@@ -116,13 +116,13 @@ int OFileNotification::start( const QString& path, bool sshot, OFileNotification
result = ::fcntl( fd, F_SETSIG, SIGRTMIN );
if ( result == -1 )
{
qWarning( "OFileNotification::start(): Can't subscribe to '%s': %s.", (const char*) dirpath, strerror( errno ) );
return -1;
}
- if ( !sshot ) (int) type |= (int) Multi;
+ if ( !sshot ) type = static_cast<OFileNotificationType>( (int) type | (int) Multi );
result = ::fcntl( fd, F_NOTIFY, type );
if ( result == -1 )
{
qWarning( "OFileNotification::start(): Can't subscribe to '%s': %s.", (const char*) dirpath, strerror( errno ) );
return -1;
}
@@ -296,12 +296,13 @@ bool OFileNotification::registerSignalHandler()
if ( ::sigaction( SIGRTMIN, &act, NULL ) == -1 )
{
qWarning( "OFileNotification::registerSignalHandler(): couldn't register signal handler: %s", strerror( errno ) );
return false;
}
qDebug( "OFileNotification::registerSignalHandler(): done" );
+ return true;
}
void OFileNotification::unregisterSignalHandler()
{
struct sigaction act;