~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to server/user.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
529
529
 
530
530
        /* look for section headers - [username] */
531
531
        if ((arg[0][0] == '[') && (arg[0][strlen(arg[0])-1] == ']')) {
532
 
                
533
532
                arg[0][strlen(arg[0])-1] = '\0';
534
533
                user_add(&arg[0][1]);
535
534
 
536
 
                return;
537
 
        }
 
535
                return;
 
536
        }
538
537
 
539
538
        if (numargs < 2)
540
539
                return;
562
561
}
563
562
 
564
563
/* called for fatal errors in parseconf like malloc failures */
565
 
void upsd_user_err(const char *errmsg)
 
564
static void upsd_user_err(const char *errmsg)
566
565
{
567
 
        upslogx(LOG_ERR, "Fatal error in parseconf(upsd.users): %s", errmsg);
 
566
        upslogx(LOG_ERR, "Fatal error in parseconf(upsd.users): %s", errmsg);
568
567
}
569
568
 
570
569
void user_load(void)