#define TemplateObjs $(TEMPLATE_OBJS)
-#if defined(i386Architecture) || defined(AMD64Architecture) || defined(AlphaArchitecture) || defined(ARMArchitecture)
+#if defined(i386Architecture) || defined(AMD64Architecture) || defined(AlphaArchitecture) || defined(ARMArchitecture) || defined(AArch64Architecture)
# define ByteOrderDefines LittleEndianDefines
#elif defined(HAL32V7Architecture) || defined(SunArchitecture) || defined(AIXArchitecture) || defined(HPArchitecture)
# define ByteOrderDefines BigEndianDefines
/*
* are any alignment characters specified?
*/
- if (NULL != alignCharacters && '\0' != alignCharacters)
+ if (NULL != alignCharacters && '\0' != *alignCharacters)
{
int len = mblen(alignCharacters, MB_CUR_MAX);
* check to see if the character is 'valid'.
* if not, default out of JUSTIFY_CHAR
*/
- if (NULL != layout->info.align_char ||
- '\0' == layout->info.align_char)
+ if ( (NULL != layout->info.align_char) && ( '\0' != *layout->info.align_char))
layout->txt_justify = _DtCvJUSTIFY_LEFT;
}
}
char *
_lastelement(char *path)
{
- register char *p;
+ char *p;
p = path + strlen(path);
free(buf);
buf = NULL;
}
- if ( string == '\0' ) {
+ if ( *string == '\0' ) {
free(string_head);
string_head = NULL;
- } else {
+ string = NULL;
+ } else if (string != NULL) {
num_byte = mblen(string, MB_LEN_MAX);
if(num_byte > 0) {
buf = (char *)malloc(num_byte+1);
get_char_prop(Props *p, Props_op op) {
Props_entry *step = p_get_props_entry(p, op);
- if (!step || !step->property_value || step->property_value == '\0')
+ if (!step || !step->property_value || *step->property_value == '\0')
return get_char_prop_default(op);
return (step->property_value);
}
get_int_prop(Props *p, Props_op op) {
Props_entry *step = p_get_props_entry(p, op);
- if (!step || !step->property_value || step->property_value == '\0')
+ if (!step || !step->property_value || *step->property_value == '\0')
return (atoi(get_char_prop_default(op)));
return (atoi(step->property_value));
}
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include "pax.h"
#include "options.h"
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include "pax.h"
#include "options.h"
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include <ast.h>
#include <ctype.h>
#include <ls.h>
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
char*
fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){
unsigned int ma = major(idevice(st));