Switch to unified view

a/src/utils/ecrontab.cpp b/src/utils/ecrontab.cpp
...
...
27
// Read crontab file and split it into lines.
27
// Read crontab file and split it into lines.
28
static bool eCrontabGetLines(vector<string>& lines)
28
static bool eCrontabGetLines(vector<string>& lines)
29
{
29
{
30
    string crontab;
30
    string crontab;
31
    ExecCmd croncmd;
31
    ExecCmd croncmd;
32
    list<string> args; 
32
    vector<string> args; 
33
    int status;
33
    int status;
34
34
35
    // Retrieve current crontab contents. An error here means that no
35
    // Retrieve current crontab contents. An error here means that no
36
    // crontab exists, and is not fatal, but we return a different
36
    // crontab exists, and is not fatal, but we return a different
37
    // status than for an empty one
37
    // status than for an empty one
...
...
49
// Concatenate lines and write crontab
49
// Concatenate lines and write crontab
50
static bool eCrontabWriteFile(const vector<string>& lines, string& reason)
50
static bool eCrontabWriteFile(const vector<string>& lines, string& reason)
51
{
51
{
52
    string crontab;
52
    string crontab;
53
    ExecCmd croncmd;
53
    ExecCmd croncmd;
54
    list<string> args; 
54
    vector<string> args; 
55
    int status;
55
    int status;
56
56
57
    for (vector<string>::const_iterator it = lines.begin();
57
    for (vector<string>::const_iterator it = lines.begin();
58
     it != lines.end(); it++) {
58
     it != lines.end(); it++) {
59
    crontab += *it + "\n";
59
    crontab += *it + "\n";