summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
295ba86)
Some versions of GCC warn about this. Always initializing it seems like
the right thing to do, since we "almost always" initialized it before.
Reported-by: Neil McKee <neil.mckee@inmon.com>
struct stat s;
char fn[128];
struct stat s;
char fn[128];
major = get_openvswitch_major();
if (major < 0) {
return -major;
}
dev = makedev(major, minor);
major = get_openvswitch_major();
if (major < 0) {
return -major;
}
dev = makedev(major, minor);
sprintf(fn, "%s/dp%d", dirname, minor);
if (!stat(fn, &s)) {
if (!S_ISCHR(s.st_mode)) {
sprintf(fn, "%s/dp%d", dirname, minor);
if (!stat(fn, &s)) {
if (!S_ISCHR(s.st_mode)) {