~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/rottype.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
int chkpt_rd_rottype(void)
25
25
{
26
26
  int rottype;
27
 
  char *key;
28
 
 
29
 
  key = chkpt_build_keyword("Rotor type");
30
 
  psio_read_entry(PSIF_CHKPT, key, (char *) &rottype, sizeof(int));
31
 
  free(key);
 
27
  char *keyword;
 
28
  keyword = chkpt_build_keyword("Rotor type");
 
29
 
 
30
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &rottype, sizeof(int));
 
31
 
 
32
  free(keyword);
32
33
  return rottype;
33
34
}
34
35
 
50
51
 
51
52
void chkpt_wt_rottype(int rottype)
52
53
{
53
 
  char *key;
54
 
 
55
 
  key = chkpt_build_keyword("Rotor type");
56
 
  psio_write_entry(PSIF_CHKPT, "::Rotor type", (char *) &rottype, sizeof(int));
57
 
  free(key);
 
54
  char *keyword;
 
55
  keyword = chkpt_build_keyword("Rotor type");
 
56
 
 
57
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &rottype, sizeof(int));
 
58
 
 
59
  free(keyword);
58
60
}