mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Working toward a clean build on Ubuntu.
This commit is contained in:
parent
6e87e05e15
commit
ebff1f48c2
2 changed files with 4 additions and 4 deletions
|
@ -380,7 +380,7 @@ int TDB::commit ()
|
|||
// Write out all pending.
|
||||
if (fseek (mLocations[0].pending, 0, SEEK_SET) == 0)
|
||||
{
|
||||
ftruncate (fileno (mLocations[0].pending), 0);
|
||||
(void)ftruncate (fileno (mLocations[0].pending), 0);
|
||||
foreach (task, allPending)
|
||||
fputs (task->composeF4 ().c_str (), mLocations[0].pending);
|
||||
}
|
||||
|
@ -464,14 +464,14 @@ int TDB::gc ()
|
|||
{
|
||||
if (fseek (tdb.mLocations[0].pending, 0, SEEK_SET) == 0)
|
||||
{
|
||||
ftruncate (fileno (tdb.mLocations[0].pending), 0);
|
||||
(void)ftruncate (fileno (tdb.mLocations[0].pending), 0);
|
||||
foreach (task, pending)
|
||||
fputs (task->composeF4 ().c_str (), tdb.mLocations[0].pending);
|
||||
}
|
||||
|
||||
if (fseek (tdb.mLocations[0].completed, 0, SEEK_SET) == 0)
|
||||
{
|
||||
ftruncate (fileno (tdb.mLocations[0].completed), 0);
|
||||
(void)ftruncate (fileno (tdb.mLocations[0].completed), 0);
|
||||
foreach (task, completed)
|
||||
fputs (task->composeF4 ().c_str (), tdb.mLocations[0].completed);
|
||||
}
|
||||
|
|
|
@ -557,7 +557,7 @@ std::string handleEdit ()
|
|||
ARE_THESE_REALLY_HARMFUL:
|
||||
// Launch the editor.
|
||||
std::cout << "Launching '" << editor << "' now..." << std::endl;
|
||||
system (editor.c_str ());
|
||||
(void)system (editor.c_str ());
|
||||
std::cout << "Editing complete." << std::endl;
|
||||
|
||||
// Slurp file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue