~ubuntu-branches/ubuntu/jaunty/xorp/jaunty

« back to all changes in this revision

Viewing changes to libxorp/strptime.c

  • Committer: Bazaar Package Importer
  • Author(s): Jose Calhariz, Javier Fernandez-Sanguino, Jose Calhariz
  • Date: 2008-01-23 01:24:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123012437-7l2u9r0k8e7op8st
Tags: 1.5~cvs.20080128-1
[ Javier Fernandez-Sanguino ]
* Update to latest CVS contents
* Modify debian/rules to prevent autobuilders from building 
  the binary-independent components: (Closes: #441121)
  - Create a new Build-Depends-Indep with all the TeX
  components used to build documentation
  - Since autobuilders call build, which in turns calls build-indep, hack
    the debian rules file so that the documentation is only built if ps2pdf,
    dvips and pslatex are available. 
* Modify the init.d script:
  - restart action: Do not attempt to stop xorp if not running
  - stop function: fix errors in the script
  - add a try-restart action
  - restructure the init.d script, move the restart code to a function
  - review the use of echo calls and exit values
* Use, as examples, the new boot files at rtrmgr/config/

[ Jose Calhariz ]
* Add depends on ncurses-dev, I don't know why xorp use tigetstr
  function from curses.  This way the depends field change less between
  build environments.
* Removed pushd and popd commands from Makefile and replaced with cd
  commands, was a bashism and FTBFS (closes: #453637)
* debian/control converted to utf-8 (closes: #454026) (closes: #453485)
* init.d/xorp now returns 0 if disabled.
* Added Vcs-Browser and Vcs-Svn fields pointing to the repository of the
  package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/* vim:set sts=4 ts=8: */
3
3
 
4
4
/*
5
 
 * Copyright (c) 2001-2007 International Computer Science Institute
 
5
 * Copyright (c) 2001-2008 International Computer Science Institute
6
6
 *
7
7
 * Permission is hereby granted, free of charge, to any person obtaining a
8
8
 * copy of this software and associated documentation files (the "Software")
15
15
 * legally binding.
16
16
 */
17
17
 
18
 
#ident "$XORP: xorp/libxorp/strptime.c,v 1.14 2007/02/16 22:46:23 pavlin Exp $"
 
18
#ident "$XORP: xorp/libxorp/strptime.c,v 1.16 2008/01/04 03:16:40 pavlin Exp $"
19
19
 
20
20
 
21
21
/*
221
221
#define LEGAL_ALT(x)            { if (alt_format & ~(x)) return NULL; }
222
222
 
223
223
 
 
224
#ifndef HAVE_STRPTIME
 
225
 
224
226
static const unsigned char *conv_num(const unsigned char *, int *,
225
227
        unsigned int, unsigned int);
226
228
static const unsigned char *find_string(const unsigned char *, int *,
522
524
        return NULL;
523
525
}
524
526
 
 
527
#endif /* HAVE_STRPTIME */
 
528
 
 
529
 
525
530
char *
526
531
xorp_strptime(const char *buf, const char *fmt, struct tm *tm)
527
532
{