~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to contrib/diffimg/diffimg.c

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: diffimg.c,v 1.13 2008/02/22 14:21:42 glenlow Exp $ $Revision: 1.13 $ */
 
1
/* $Id: diffimg.c,v 1.16 2009/06/03 01:10:49 ellson Exp $ $Revision: 1.16 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
35
35
#include <string.h>
36
36
#include <sys/types.h>
37
37
#include <sys/stat.h>
38
 
#include <unistd.h>
 
38
#ifndef WIN32
 
39
//#include <unistd.h>
 
40
#endif
 
41
 
39
42
#ifdef WIN32
40
43
#define EX_USAGE                64
41
44
#define EX_DATAERR              65
42
45
#define EX_NOINPUT              66
43
46
#define EX_UNAVAILABLE  69
 
47
#define bool int
 
48
#define false 0
44
49
#else
45
50
#include <sysexits.h>
46
51
#endif