~ubuntu-branches/ubuntu/lucid/loop-aes-utils/lucid-security

« back to all changes in this revision

Viewing changes to partx/solaris.c

  • Committer: Bazaar Package Importer
  • Author(s): Max Vozeler
  • Date: 2009-07-06 02:08:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090706020818-11pxao7bhgjenfv9
Tags: 2.15.1~rc1-2
Disable ncurses (--without-ncurses), not used in
mount/. Fixes FTBFS (closes: #535676).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <stdio.h>
2
2
#include <time.h>               /* time_t */
 
3
#include <sys/types.h>
3
4
#include "partx.h"
4
5
 
5
6
#define SOLARIS_X86_NUMSLICE    8
6
7
#define SOLARIS_X86_VTOC_SANE   (0x600DDEEEUL)
7
8
 
8
 
typedef int daddr_t;            /* or long - check */
9
 
 
10
9
struct solaris_x86_slice {
11
10
        unsigned short  s_tag;          /* ID tag of partition */
12
11
        unsigned short  s_flag;         /* permision flags */
34
33
        struct solaris_x86_slice *s;
35
34
        unsigned int offset = all.start;
36
35
        int i, n;
37
 
        char *bp;
 
36
        unsigned char *bp;
38
37
 
39
38
        bp = getblock(fd, offset+1);    /* 1 sector suffices */
40
39
        if (bp == NULL)