summaryrefslogtreecommitdiffstats
path: root/test/enum.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-02-03 16:14:18 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-02-03 16:14:18 +0100
commit85546868f4df692803d21ddbaa20673fd8b5be0b (patch)
tree8a8079c69adf483b6ab2dd435faf1ba72191287c /test/enum.c
parent0da06d904850330f583e1e8cdededcf6aa8cbe29 (diff)
downloaduca-85546868f4df692803d21ddbaa20673fd8b5be0b.tar.gz
uca-85546868f4df692803d21ddbaa20673fd8b5be0b.tar.bz2
uca-85546868f4df692803d21ddbaa20673fd8b5be0b.tar.xz
uca-85546868f4df692803d21ddbaa20673fd8b5be0b.zip
Typedef types
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/enum.c b/test/enum.c
index 148304c..17b595f 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -36,14 +36,14 @@ void print_level(int depth)
int main(int argc, char *argv[])
{
- struct uca *u = uca_init(NULL);
+ uca *u = uca_init(NULL);
if (u == NULL) {
printf("Couldn't find a camera\n");
return 1;
}
/* take first camera */
- struct uca_camera *cam = u->cameras;
+ uca_camera *cam = u->cameras;
const size_t num_bytes = 256;
char string_value[num_bytes];
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
while (cam != NULL) {
for (int i = 0; i < UCA_PROP_LAST; i++) {
- struct uca_property *prop = uca_get_full_property(i);
+ uca_property *prop = uca_get_full_property(i);
print_level(count_dots(prop->name));
printf("%s = ", prop->name);
switch (prop->type) {