]> git.draconx.ca Git - upkg.git/commitdiff
libupkg: Fix minor type error in decodeindex test.
authorNick Bowler <nbowler@draconx.ca>
Fri, 11 May 2012 23:26:26 +0000 (19:26 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 11 May 2012 23:26:26 +0000 (19:26 -0400)
sopts is a string, so it should be a char[] rather than unsigned char[].

test/decodeindex.c

index d3f099a6824ac66ec4efe6f1771995c9a52cc01d..415fa7904868598104ebed07c51cf271bc8bd1fd 100644 (file)
@@ -26,7 +26,7 @@
 
 #define PROGNAME "decodeindex"
 static const char *progname = PROGNAME;
-static const unsigned char sopts[] = "VH";
+static const char sopts[] = "VH";
 static const struct option lopts[] = {
        { "version", 0, NULL, 'V' },
        { "help",    0, NULL, 'H' },