Mercurial > trustbridge
comparison ui/listutil.c @ 14:58d51a91d448
Change Unknown state to UnknownValidity to avoid name clashes
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 19 Feb 2014 10:44:40 +0000 |
parents | 2ad9a96518e3 |
children |
comparison
equal
deleted
inserted
replaced
13:e26f9cc93601 | 14:58d51a91d448 |
---|---|
80 *data = NULL; | 80 *data = NULL; |
81 } | 81 } |
82 goto cleanup; | 82 goto cleanup; |
83 } | 83 } |
84 | 84 |
85 retval = Unknown; | 85 retval = UnknownValidity; |
86 cleanup: | 86 cleanup: |
87 | 87 |
88 if (fd && fd != -1) { | 88 if (fd && fd != -1) { |
89 close(fd); | 89 close(fd); |
90 fd = -1; | 90 fd = -1; |
102 *data = NULL; | 102 *data = NULL; |
103 *size = 0; | 103 *size = 0; |
104 | 104 |
105 retval = readList(fileName, data, size); | 105 retval = readList(fileName, data, size); |
106 | 106 |
107 if (retval != Unknown) { | 107 if (retval != UnknownValidity) { |
108 printf ("Readlist failed\n"); | 108 printf ("Readlist failed\n"); |
109 return retval; | 109 return retval; |
110 } | 110 } |
111 | 111 |
112 if (!data || !*size) { | 112 if (!data || !*size) { |